Added spotify
This commit is contained in:
parent
891fa64466
commit
28eb24c658
24
modules/users/modules/spotify/default.nix
Normal file
24
modules/users/modules/spotify/default.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user