From 2cb614c1bfdb6fbd749bd373f7ad7869399de411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Thu, 24 Jul 2025 20:34:38 +0200 Subject: [PATCH] System Gen87 @ 2025-07-24-20:34:37 by jonas@monolith --- hosts/monolith/configuration.nix | 2 -- modules/programs/spotify-shortcuts.nix | 15 +++++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/hosts/monolith/configuration.nix b/hosts/monolith/configuration.nix index 53f9bb8..3f0537c 100644 --- a/hosts/monolith/configuration.nix +++ b/hosts/monolith/configuration.nix @@ -20,12 +20,10 @@ sops.secrets.spotifyShortcutsClientId = { sopsFile = ../../secrets/spotify-shortcuts.yaml; key = "clientId"; - mode = "0644"; }; sops.secrets.spotifyShortcutsClientSecret = { sopsFile = ../../secrets/spotify-shortcuts.yaml; key = "clientSecret"; - mode = "0644"; }; # Users diff --git a/modules/programs/spotify-shortcuts.nix b/modules/programs/spotify-shortcuts.nix index 37cd980..111fc88 100644 --- a/modules/programs/spotify-shortcuts.nix +++ b/modules/programs/spotify-shortcuts.nix @@ -23,11 +23,14 @@ in { environment.variables = { SPOTIFY_SHORTCUTS_CONFIG = config.sops.templates."spotify-shortcuts-client.json".path; }; - sops.templates."spotify-shortcuts-client.json".content = '' - { - "clientId": "${config.sops.placeholder.${cfg.clientIdSopsKey}}", - "clientSecret": "${config.sops.placeholder.${cfg.clientSecretSopsKey}}" - } - ''; + sops.templates."spotify-shortcuts-client.json" = { + mode = "644"; + content = '' + { + "clientId": "${config.sops.placeholder.${cfg.clientIdSopsKey}}", + "clientSecret": "${config.sops.placeholder.${cfg.clientSecretSopsKey}}" + } + ''; + }; }; }