infrastructure/nixos-configurations/lindberg/secrets.nix

20 lines
374 B
Nix
Raw Normal View History

2024-10-02 15:52:04 +02:00
{ ... }:
let
backupConfiguration = {
restartUnits = [
2024-12-06 13:04:04 +01:00
"borgbackup-job-data-cyprianspitz.service"
2024-10-02 15:52:04 +02:00
"borgbackup-job-data-tierberg.service"
];
};
in
{
sops.secrets = {
"tailscale/key" = {
restartUnits = [ "tailscale.service" ];
};
"backup/data/password" = backupConfiguration;
"backup/data/ssh-key" = backupConfiguration;
};
}