System Gen87 @ 2025-07-24-20:34:37 by jonas@monolith

This commit is contained in:
Jonas Röger 2025-07-24 20:34:38 +02:00
parent 680378e691
commit 2cb614c1bf
2 changed files with 9 additions and 8 deletions

View File

@ -20,12 +20,10 @@
sops.secrets.spotifyShortcutsClientId = { sops.secrets.spotifyShortcutsClientId = {
sopsFile = ../../secrets/spotify-shortcuts.yaml; sopsFile = ../../secrets/spotify-shortcuts.yaml;
key = "clientId"; key = "clientId";
mode = "0644";
}; };
sops.secrets.spotifyShortcutsClientSecret = { sops.secrets.spotifyShortcutsClientSecret = {
sopsFile = ../../secrets/spotify-shortcuts.yaml; sopsFile = ../../secrets/spotify-shortcuts.yaml;
key = "clientSecret"; key = "clientSecret";
mode = "0644";
}; };
# Users # Users

View File

@ -23,11 +23,14 @@ in {
environment.variables = { environment.variables = {
SPOTIFY_SHORTCUTS_CONFIG = config.sops.templates."spotify-shortcuts-client.json".path; SPOTIFY_SHORTCUTS_CONFIG = config.sops.templates."spotify-shortcuts-client.json".path;
}; };
sops.templates."spotify-shortcuts-client.json".content = '' sops.templates."spotify-shortcuts-client.json" = {
{ mode = "644";
"clientId": "${config.sops.placeholder.${cfg.clientIdSopsKey}}", content = ''
"clientSecret": "${config.sops.placeholder.${cfg.clientSecretSopsKey}}" {
} "clientId": "${config.sops.placeholder.${cfg.clientIdSopsKey}}",
''; "clientSecret": "${config.sops.placeholder.${cfg.clientSecretSopsKey}}"
}
'';
};
}; };
} }