Added spotify

This commit is contained in:
Jan-Bulthuis 2024-12-02 00:54:38 +01:00
parent 891fa64466
commit 28eb24c658
1 changed files with 24 additions and 0 deletions

View File

@ -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
];
};
}