migrate secrets to new structure

This commit is contained in:
TheWanderingCrow 2025-11-02 11:10:45 -05:00
parent 957225dd0d
commit ca8a707ae2
7 changed files with 124 additions and 96 deletions

View file

@ -7,10 +7,6 @@ let
Persistent = true;
};
paths = [
# bar-assistant.nix
"${volumePath}/bar-assistant"
"${volumePath}/meilisearch"
# homebox.nix
"/var/lib/homebox/data"
@ -33,21 +29,20 @@ let
];
};
in
{
lib,
config,
...
}: {
# Restic secrets
sops.secrets."restic/borg-base/url" = {};
sops.secrets."restic/borg-base/key" = {};
{
lib,
config,
...
}:
{
# Restic secrets
sops.secrets."restic/borg-base/url" = { };
sops.secrets."restic/borg-base/key" = { };
services.restic.backups = {
borg-base =
restic-default
// {
repositoryFile = config.sops.secrets."restic/borg-base/url".path;
passwordFile = config.sops.secrets."restic/borg-base/key".path;
};
services.restic.backups = {
borg-base = restic-default // {
repositoryFile = config.sops.secrets."restic/borg-base/url".path;
passwordFile = config.sops.secrets."restic/borg-base/key".path;
};
}
};
}