Init spotify
This commit is contained in:
parent
2d190ba3d8
commit
97724f2a37
|
@ -6,6 +6,7 @@
|
||||||
./gnome-common.nix
|
./gnome-common.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
|
./spotify.nix
|
||||||
./sway
|
./sway
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
19
modules/applications/spotify.nix
Normal file
19
modules/applications/spotify.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.this.application.spotify;
|
||||||
|
graphical = config.this.graphical;
|
||||||
|
in with lib; {
|
||||||
|
options = {
|
||||||
|
this.application.spotify.enable = mkOption {
|
||||||
|
default = graphical.enable;
|
||||||
|
type = with types; bool;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home-manager.users.james = { home.packages = with pkgs; [ spotify ]; };
|
||||||
|
|
||||||
|
# Local discovery - https://nixos.wiki/wiki/Spotify
|
||||||
|
networking.firewall.allowedTCPPorts = [ 57621 ];
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user