mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-05-10 14:30:54 +02:00
agenix: migrate falkenstein
This commit is contained in:
parent
3c5095f144
commit
dcaa017e5d
13 changed files with 48 additions and 63 deletions
|
@ -1,6 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
sops.secrets."borg/passphrase" = { };
|
||||
age.secrets."borg/passphrase" = {
|
||||
file = ../../../../secrets/falkenstein/borg/passphrase.age;
|
||||
};
|
||||
environment.systemPackages = [ pkgs.borgbackup ];
|
||||
services.borgmatic = {
|
||||
enable = true;
|
||||
|
@ -17,7 +19,7 @@
|
|||
label = "nuc";
|
||||
}
|
||||
];
|
||||
encryption_passcommand = "${pkgs.coreutils}/bin/cat ${config.sops.secrets."borg/passphrase".path}";
|
||||
encryption_passcommand = "${pkgs.coreutils}/bin/cat ${config.age.secrets."borg/passphrase".path}";
|
||||
compression = "lz4";
|
||||
keep_daily = 7;
|
||||
keep_weekly = 4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue