modules/restic: fix btrfs not found
This commit is contained in:
parent
018044aa7d
commit
52267e1ab6
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
# TODO: https://github.com/lilyinstarlight/foosteros/blob/dfe1ab3eb68bfebfaa709482d52fa04ebdde81c8/config/restic.nix#L23 <- this is better
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
@ -55,10 +56,10 @@ in
|
|||
}
|
||||
(lib.mkIf (config.fileSystems."/".fsType == "btrfs") {
|
||||
backupPrepareCommand = ''
|
||||
btrfs subvolume snapshot -r / backup
|
||||
${pkgs.btrfs-progs}/bin/btrfs subvolume snapshot -r / backup
|
||||
'';
|
||||
backupCleanupCommand = ''
|
||||
btrfs subvolume delete /backup
|
||||
${pkgs.btrfs-progs}/bin/btrfs subvolume delete /backup
|
||||
'';
|
||||
paths = map (p: "/backup" + p) cfg.paths;
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue