nichts/modules/gui/spicetify.nix

31 lines
814 B
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
config,
pkgs,
lib,
inputs,
...
}: let
cfg = config.modules.programs.spicetify;
username = config.modules.other.system.username;
spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
# inherit (inputs.spicetify-nix.packages.${pkgs.system}) spicetify-nix;
2024-05-14 00:54:35 +02:00
in {
2024-05-22 10:43:46 +02:00
options.modules.programs.spicetify.enable = lib.mkEnableOption "spicetify";
config = lib.mkIf cfg.enable {
home-manager.users.${username} = {
2024-05-22 14:29:45 +02:00
imports = [inputs.spicetify-nix.homeManagerModule];
programs.spicetify = {
enable = true;
spotifyPackage = pkgs.spotify;
2024-05-21 22:30:34 +02:00
theme = spicePkgs.themes.Onepunch;
colorScheme = "mocha";
enabledExtensions = with spicePkgs.extensions; [
shuffle
hidePodcasts
adblock
];
};
};
};
2024-05-14 00:54:35 +02:00
}