Init spotify

This commit is contained in:
James Patrick 2022-03-24 19:47:26 -04:00
parent 2d190ba3d8
commit 97724f2a37
2 changed files with 20 additions and 0 deletions

View File

@ -6,6 +6,7 @@
./gnome-common.nix
./kitty.nix
./nextcloud.nix
./spotify.nix
./sway
];
}

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