diff --git a/modules/users/modules/spotify/default.nix b/modules/users/modules/spotify/default.nix new file mode 100644 index 0000000..4f81156 --- /dev/null +++ b/modules/users/modules/spotify/default.nix @@ -0,0 +1,24 @@ +{ + config, + lib, + pkgs, + ... +}: + +with lib; +let + cfg = config.modules.spotify; +in +{ + options.modules.spotify.enable = mkEnableOption "spotify"; + + config = mkIf cfg.enable { + modules.unfree.allowedPackages = [ + "spotify" + ]; + + home.packages = with pkgs; [ + spotify + ]; + }; +}