nix run github:astro/deadnix

This commit is contained in:
2023-09-30 17:06:41 +03:00
parent 305eba5d2e
commit 0e9f90a960
18 changed files with 16 additions and 30 deletions

View File

@@ -4,7 +4,7 @@
pkgs,
...
}: let
mkPreHook = mountpoint: zfs_name: i: ''
mkPreHook = zfs_name: i: ''
set -x
sleep ${toString i}
mkdir "$RUNTIME_DIRECTORY/snapshot"
@@ -79,7 +79,7 @@ in {
extraArgs = "--remote-path=borg1";
compression = "auto,lzma";
startAt = attrs.backup_at;
preHook = mkPreHook mountpoint fs.device i;
preHook = mkPreHook fs.device i;
prune.keep = {
within = "1d";
daily = 7;