Added spotify
This commit is contained in:
parent
891fa64466
commit
28eb24c658
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue