2022-12-04 16:10:00 +00:00
|
|
|
{...}: {
|
2022-11-17 22:25:41 +00:00
|
|
|
services.secrets = {
|
|
|
|
enable = true;
|
|
|
|
secrets = {
|
2022-12-04 13:45:43 +00:00
|
|
|
usb_encryption_passphrase = {manual = true;};
|
2022-11-17 22:25:41 +00:00
|
|
|
music_stream_password = {
|
|
|
|
user = "chaos";
|
|
|
|
group = "users";
|
|
|
|
fetchScript = ''
|
|
|
|
simple_get "/api-keys/music-stream" .password > $secretFile
|
|
|
|
'';
|
|
|
|
};
|
2023-08-29 14:07:17 +01:00
|
|
|
# Required for home.apps.manual-backup-apps
|
|
|
|
gitlab_archiver_token = {
|
|
|
|
user = "chaos";
|
|
|
|
group = "users";
|
|
|
|
|
|
|
|
fetchScript = ''
|
|
|
|
simple_get "/api-keys/gitlab/gitlab_archiver" .token > $secretFile
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
# Required for home.apps.manual-backup-apps
|
|
|
|
restic_music_env = {
|
|
|
|
user = "chaos";
|
|
|
|
group = "users";
|
|
|
|
|
|
|
|
fetchScript = ''
|
|
|
|
api_username=$(simple_get "/api-keys/storage/restic/Music" .username)
|
|
|
|
api_password=$(simple_get "/api-keys/storage/restic/Music" .password)
|
|
|
|
restic_password=$(simple_get "/private-public-keys/restic/Music" .password)
|
|
|
|
|
|
|
|
echo > $secretFile
|
|
|
|
echo "RESTIC_REPOSITORY=rest:https://''${api_username}:''${api_password}@storage-restic.owo.monster/Music" >> $secretFile
|
|
|
|
echo "RESTIC_PASSWORD=''${restic_password}" >> $secretFile
|
|
|
|
'';
|
|
|
|
};
|
2022-11-17 22:25:41 +00:00
|
|
|
};
|
|
|
|
};
|
2022-11-11 20:53:17 +00:00
|
|
|
}
|