diff options
-rw-r--r-- | custom/btrfs-snapshots.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/custom/btrfs-snapshots.nix b/custom/btrfs-snapshots.nix index 6cc89da9..96d2b2ba 100644 --- a/custom/btrfs-snapshots.nix +++ b/custom/btrfs-snapshots.nix | |||
@@ -41,10 +41,10 @@ in { | |||
41 | 41 | ||
42 | serviceConfig = with pkgs; { | 42 | serviceConfig = with pkgs; { |
43 | Type = "oneshot"; | 43 | Type = "oneshot"; |
44 | ExecStartPre = "-${btrfs-progs}/bin/btrfs subvolume delete -c ${snapshotMount "%i"}"; | 44 | ExecStartPre = "-${btrfs-progs}/bin/btrfs subvolume delete -c ${snapshotMount "%f"}"; |
45 | ExecStart = "${btrfs-progs}/bin/btrfs subvolume snapshot ${optionalString cfg.readOnly "-r"} %f ${snapshotMount "%i"}"; | 45 | ExecStart = "${btrfs-progs}/bin/btrfs subvolume snapshot ${optionalString cfg.readOnly "-r"} %f ${snapshotMount "%f"}"; |
46 | RemainAfterExit = true; | 46 | RemainAfterExit = true; |
47 | ExecStop = "${btrfs-progs}/bin/btrfs subvolume delete -c ${snapshotMount "%i"}"; | 47 | ExecStop = "${btrfs-progs}/bin/btrfs subvolume delete -c ${snapshotMount "%f"}"; |
48 | }; | 48 | }; |
49 | }; | 49 | }; |
50 | 50 | ||