diff --git a/hosts/kim/configuration.nix b/hosts/kim/configuration.nix index da12a5e..c0e8c69 100644 --- a/hosts/kim/configuration.nix +++ b/hosts/kim/configuration.nix @@ -104,6 +104,8 @@ secrets."spotifyd/settings/global/password" = { }; }; + + # Install and setup spotifyd sops.templates."spotifyd.conf".content = '' [global] username = "me@annikamerris.com" @@ -113,6 +115,21 @@ device_type = "computer" what = "huh" ''; + systemd.user.services.spotifyd = { + Unit = { + Description = "spotify daemon"; + Documentation = "https://github.com/Spotifyd/spotifyd"; + }; + + Install.WantedBy = [ "default.target" ]; + + Service = { + ExecStart = + "${pkgs.spotifyd}/bin/spotifyd --no-daemon --config-path ${sops.templates."spotifyd.conf".path}"; + Restart = "always"; + RestartSec = 12; + }; + }; home-manager = { extraSpecialArgs = { inherit inputs; };