From 28eb24c6588c37c5676f9245244763cc78508509 Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Mon, 2 Dec 2024 00:54:38 +0100 Subject: [PATCH] Added spotify --- modules/users/modules/spotify/default.nix | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 modules/users/modules/spotify/default.nix 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 + ]; + }; +}