From 0d899739c09ddf67304a6fae1ac078e9782392fa Mon Sep 17 00:00:00 2001 From: Annika Merris Date: Sun, 19 May 2024 19:34:32 -0400 Subject: [PATCH] Moving Some Config Stuffs --- modules/common/applications/spotifyd.nix | 60 ++++++++++++------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/modules/common/applications/spotifyd.nix b/modules/common/applications/spotifyd.nix index 6fb4cb8..434fdda 100644 --- a/modules/common/applications/spotifyd.nix +++ b/modules/common/applications/spotifyd.nix @@ -14,38 +14,38 @@ pkgs.spotifyd ]; }; - }; - sops = { - secrets."spotifyd/settings/global/password" = { }; + sops = { + secrets."spotifyd/settings/global/password" = { }; - templates = { - "spotifyd.conf" = { - owner = "annika"; - content = '' - [global] - username = "me@annikamerris.com" - password = "${config.sops.placeholder."spotifyd/settings/global/password"}" - use_mpris = true - device_name = "kim-nix" - device_type = "computer" - ''; + templates = { + "spotifyd.conf" = { + owner = "annika"; + content = '' + [global] + username = "me@annikamerris.com" + password = "${config.sops.placeholder."spotifyd/settings/global/password"}" + use_mpris = true + device_name = "kim-nix" + device_type = "computer" + ''; + }; + }; + }; + + # Install and setup spotifyd + # sops.templates. + systemd.user.services.spotifyd = { + description = "spotify daemon"; + documentation = [ "https://github.com/Spotifyd/spotifyd" ]; + + wantedBy = [ "default.target" ]; + + serviceConfig = { + ExecStart = + "${pkgs.spotifyd}/bin/spotifyd --no-daemon --config-path ${config.sops.templates."spotifyd.conf".path}"; + Restart = "always"; + RestartSec = 12; }; }; }; - - # Install and setup spotifyd - # sops.templates. - systemd.user.services.spotifyd = { - description = "spotify daemon"; - documentation = [ "https://github.com/Spotifyd/spotifyd" ]; - - wantedBy = [ "default.target" ]; - - serviceConfig = { - ExecStart = - "${pkgs.spotifyd}/bin/spotifyd --no-daemon --config-path ${config.sops.templates."spotifyd.conf".path}"; - Restart = "always"; - RestartSec = 12; - }; - }; }