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 = {
sopsFile = ../../secrets/spotify-shortcuts.yaml;
key = "clientId";
mode = "0644";
};
sops.secrets.spotifyShortcutsClientSecret = {
sopsFile = ../../secrets/spotify-shortcuts.yaml;
key = "clientSecret";
mode = "0644";
};
# Users

View File

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