mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 12:03:11 -05:00
It's a secret
This commit is contained in:
parent
0f3fa23b09
commit
2162f6de09
1 changed files with 17 additions and 0 deletions
|
|
@ -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; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue