It's a secret

This commit is contained in:
Annika Merris 2024-05-12 11:07:56 -04:00
parent 0f3fa23b09
commit 2162f6de09

View file

@ -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; };