fix for borg.nix
This commit is contained in:
parent
5ac5c11823
commit
1db51bf214
2 changed files with 3 additions and 3 deletions
|
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/run/current-system/sw/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
hooktype="$1"
|
||||
backuppath="$2"
|
||||
fstype="$(df --output=fstype / | sed 1d)"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue