nichts/modules/programs/gui/spicetify.nix

32 lines
734 B
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
config,
pkgs,
lib,
inputs,
2024-07-21 21:58:18 +02:00
inputs',
2024-05-22 14:29:45 +02:00
...
}: let
2024-07-20 13:18:01 +02:00
cfg = config.modules.system.programs.spotify;
inherit (config.modules.other.system) username;
2024-08-13 11:00:58 +02:00
spicePkgs = inputs'.spicetify-nix.legacyPackages;
2024-05-14 00:54:35 +02:00
in {
2024-05-22 10:43:46 +02:00
config = lib.mkIf cfg.enable {
home-manager.users.${username} = {
2024-08-13 11:00:58 +02:00
imports = [inputs.spicetify-nix.homeManagerModules.default];
programs.spicetify = {
enable = true;
spotifyPackage = pkgs.spotify;
2024-08-13 11:00:58 +02:00
theme = spicePkgs.themes.catppuccin;
colorScheme = "mocha";
enabledExtensions = with spicePkgs.extensions; [
# shuffle
# popupLyrics
adblock
# betterGenres
# playlistIcons
];
};
};
};
2024-05-14 00:54:35 +02:00
}