fix for borg.nix

This commit is contained in:
mc-fucker 2024-08-27 23:41:20 +02:00
parent 5ac5c11823
commit 1db51bf214
2 changed files with 3 additions and 3 deletions

View file

@ -36,9 +36,9 @@ in
environment = {
BORG_RELOCATED_REPO_ACCESS_IS_OK = "yes";
};
path = [ pkgs.btrfs-progs ];
path = [ pkgs.btrfs-progs pkgs.mount pkgs.umount pkgs.lvm2 pkgs.bash ];
serviceConfig = {
ReadWritePaths = [ "/backup" ];
ReadWritePaths = [ "/backup" "/var/lock/lvm" "/etc/lvm" ];
};
};
}

View file

@ -1,4 +1,4 @@
#!/run/current-system/sw/bin/bash
#!/usr/bin/env bash
hooktype="$1"
backuppath="$2"
fstype="$(df --output=fstype / | sed 1d)"