From 7c9db8867256a903daf43c707b0ae56e0919eb6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Thu, 25 Dec 2025 08:57:01 +0100 Subject: [PATCH] spotifyd: remove --- systems/zaatar/spotifyd.nix | 47 ------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 systems/zaatar/spotifyd.nix diff --git a/systems/zaatar/spotifyd.nix b/systems/zaatar/spotifyd.nix deleted file mode 100644 index 4f639b3..0000000 --- a/systems/zaatar/spotifyd.nix +++ /dev/null @@ -1,47 +0,0 @@ -{config, ...}: { - nixpkgs.config.packageOverrides = pkgs: { - # mpris is a dbus service for controlling all music players with e.g. playerctl - # I do not need this, because I only interact with the service via Spotify Connect - # otherẃise it will pull in DBus which fails without X11 - spotifyd = pkgs.spotifyd.overrideAttrs { - withMpris = false; - withKeyring = false; - }; - }; - - services.spotifyd = { - enable = true; - settings = { - global = { - username_cmd = "cat $CREDENTIALS_DIRECTORY/username"; - password_cmd = "cat $CREDENTIALS_DIRECTORY/password"; - bitrate = 320; - use_mpris = false; - device_type = "s_t_b"; # set-top box - device_name = config.networking.hostName; - }; - }; - }; - - systemd.services.spotifyd = { - serviceConfig.LoadCredential = [ - "username:${config.age.secrets.spotify-username.path}" - "password:${config.age.secrets.spotify-password.path}" - ]; - serviceConfig.RuntimeMaxSec = "${toString (5 * 60 * 60)}s"; - serviceConfig.SupplementaryGroups = ["pipewire"]; - }; - - networking.firewall.allowedTCPPorts = [4713]; - - age.secrets = { - spotify-username.file = ../../secrets/spotify-username.age; - spotify-password.file = ../../secrets/spotify-password.age; - }; - - # ref https://github.com/NixOS/nixpkgs/issues/71362#issuecomment-753461502 - hardware.pulseaudio.extraConfig = '' - unload-module module-native-protocol-unix - load-module module-native-protocol-unix auth-anonymous=1 - ''; -}