System Gen87 @ 2025-07-24-20:34:37 by jonas@monolith
This commit is contained in:
parent
680378e691
commit
2cb614c1bf
@ -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
|
||||||
|
|||||||
@ -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}}"
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user