flakes/modules/user/spicetify.nix

52 lines
1.4 KiB
Nix
Raw Normal View History

{ config, inputs, lib, pkgs, ... }:
2023-01-23 22:18:27 +07:00
let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
2023-01-23 22:18:27 +07:00
in
{
imports = [ inputs.spicetify-nix.homeManagerModules.spicetify ];
2023-01-23 22:18:27 +07:00
programs.spicetify = {
enable = true;
2025-03-17 13:13:05 +11:00
alwaysEnableDevTools = true;
theme = spicePkgs.themes.catppuccin // {
additionalCss = ''
/* Removes "About the artist" text in now playing menu */
.main-nowPlayingView-sectionHeaderText {
display: none;
}
/* Removes gradient in now playing menu */
.main-nowPlayingView-contextItemInfo:before {
background: none;
}
/* Removes gradient above artist image */
/* https://stackoverflow.com/a/77015731 < this is so smart */
.main-nowPlayingView-aboutArtistV2ImageContainer.main-nowPlayingView-aboutArtistV2Image {
background-size: 0% 0%, cover;
}
'';
};
colorScheme = config.catppuccin.flavor;
2023-01-23 22:18:27 +07:00
2025-03-17 14:02:06 +11:00
enabledSnippets = with spicePkgs.snippets; [
removeGradient
];
2023-04-06 20:10:41 +07:00
enabledCustomApps = with spicePkgs.apps; [
lyricsPlus
2023-04-06 20:10:41 +07:00
];
2023-01-23 22:18:27 +07:00
enabledExtensions = with spicePkgs.extensions; [
fullAppDisplay
shuffle
2023-01-23 22:18:27 +07:00
hidePodcasts
2023-04-06 20:10:41 +07:00
skipStats
songStats
history
volumePercentage
2023-01-23 22:18:27 +07:00
];
};
home.file.".local/bin/spotify".source = lib.getExe config.programs.spicetify.spicedSpotify;
2023-01-23 22:18:27 +07:00
}