diff options
-rw-r--r-- | custom/btrfs-snapshots.nix | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/custom/btrfs-snapshots.nix b/custom/btrfs-snapshots.nix index 034b5019..6cc89da9 100644 --- a/custom/btrfs-snapshots.nix +++ b/custom/btrfs-snapshots.nix | |||
@@ -32,16 +32,10 @@ in { | |||
32 | 32 | ||
33 | 33 | ||
34 | config = mkIf cfg.enable { | 34 | config = mkIf cfg.enable { |
35 | |||
36 | system.activationScripts."btrfs-snapshots" = '' | ||
37 | mkdir -p ${cfg.mountPoint} | ||
38 | ''; | ||
39 | |||
40 | systemd.services."btrfs-snapshot@" = { | 35 | systemd.services."btrfs-snapshot@" = { |
41 | enable = true; | 36 | enable = true; |
42 | 37 | ||
43 | unitConfig = { | 38 | unitConfig = { |
44 | AssertPathIsDirectory = cfg.mountPoint; | ||
45 | StopWhenUnneeded = !cfg.persist; | 39 | StopWhenUnneeded = !cfg.persist; |
46 | }; | 40 | }; |
47 | 41 | ||