1
0
Fork 0
nix-config/modules/home/apps/spotify/default.nix

24 lines
348 B
Nix

{
config,
lib,
pkgs,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.apps.spotify;
in
{
options.${namespace}.apps.spotify = with types; {
enable = mkBoolOpt false "Whether or not to enable spotify.";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
spotify
];
};
}