nichts/modules/gui/spicetify.nix
2024-07-21 21:58:18 +02:00

30 lines
681 B
Nix

{
config,
pkgs,
lib,
inputs,
inputs',
...
}: let
cfg = config.modules.system.programs.spotify;
inherit (config.modules.other.system) username;
spicePkgs = inputs'.spicetify-nix.packages.default;
in {
config = lib.mkIf cfg.enable {
home-manager.users.${username} = {
imports = [inputs.spicetify-nix.homeManagerModule];
programs.spicetify = {
enable = true;
spotifyPackage = pkgs.spotify;
#theme = spicePkgs.themes.Onepunch;
colorScheme = "mocha";
enabledExtensions = with spicePkgs.extensions; [
shuffle
adblock
genre
playlistIcons
];
};
};
};
}