diff options
author | lassulus <git@lassul.us> | 2023-07-28 23:59:58 +0200 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-07-28 23:59:58 +0200 |
commit | 02e790c9fb6965e28f1573841181f610ff1599eb (patch) | |
tree | 5462ffe78c3708806821d893baa6a2c81137812f /makefu/2configs/backup/state.nix | |
parent | fd07efa9e97b0984856a97a44ad0b97130db92f7 (diff) | |
parent | 3f37acf6f9ea4af21195cd7b0a37ba359105a69d (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/backup/state.nix')
-rw-r--r-- | makefu/2configs/backup/state.nix | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/makefu/2configs/backup/state.nix b/makefu/2configs/backup/state.nix deleted file mode 100644 index 1143708bf..000000000 --- a/makefu/2configs/backup/state.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ config, ... }: -# back up all state -let - sec = toString <secrets>; - sshkey = sec + "/borg.priv"; - phrase = sec + "/borg.pw"; -in -{ - services.borgbackup.jobs.state = { - repo = "borg-${config.krebs.build.host.name}@backup.makefu.r:."; - paths = config.state; - encryption = { - mode = "repokey"; - passCommand = "cat ${phrase}"; - }; - environment.BORG_RSH = "ssh -i ${sshkey}"; - prune.keep = - { daily = 7; - weekly = 4; - monthly = -1; # Keep at least one archive for each month - }; - compression = "auto,lzma"; - startAt = "daily"; - }; -} |