NixOSDots/modules/common/spotify.nix
2025-12-13 11:38:52 +01:00

37 lines
723 B
Nix

{ pkgs, inputs, ... }:
{
# Installs Spotify and Spicetify (import this module in homeManager)
environment.systemPackages = with pkgs; [
spotify
];
# Local discovery
networking.firewall.allowedTCPPorts = [ 57621 ];
# Spotify Connect
networking.firewall.allowedUDPPorts = [ 5353 ];
# Spicetify
programs.spicetify =
let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
enable = true;
enabledCustomApps = with spicePkgs.apps; [
newReleases
ncsVisualiser
];
enabledSnippets = with spicePkgs.snippets; [
rotatingCoverart
pointer
];
theme = spicePkgs.themes.catppuccin;
colorScheme = "mocha";
}
}