config/modules/home/apps/music/spotify/default.nix

34 lines
690 B
Nix
Raw Normal View History

2024-05-23 20:26:30 +00:00
{
options,
config,
lib,
2024-05-23 20:48:19 +00:00
inputs,
system,
pkgs,
2024-05-23 20:26:30 +00:00
...
}:
with lib;
with lib.custom; let
2024-05-23 20:48:19 +00:00
cfg = config.apps.music.spotify;
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
2024-05-23 20:26:30 +00:00
in {
options.apps.music.spotify = with types; {
enable = mkBoolOpt false "Enable Spotify";
};
config = mkIf cfg.enable {
programs.spicetify = {
enable = true;
theme = spicePkgs.themes.catppuccin;
2024-08-21 14:35:32 -04:00
spotifyPackage = pkgs.spotify;
2024-05-23 20:26:30 +00:00
colorScheme = "mocha";
enabledExtensions = with spicePkgs.extensions; [
fullAppDisplay
shuffle # shuffle+ (special characters are sanitized out of ext names)
hidePodcasts
];
};
};
}