diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-11-24 18:54:18 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-11-24 18:54:18 +0100 |
commit | 3c72017e817ce77a2d7b6a6de7afbd43166da138 (patch) | |
tree | 9f1a64ee643e8ae0959df8d860592efc781c0a3f | |
parent | 3f6de9c937985478e1daf9017936d4a47ad6c47f (diff) | |
download | nixos-3c72017e817ce77a2d7b6a6de7afbd43166da138.tar nixos-3c72017e817ce77a2d7b6a6de7afbd43166da138.tar.gz nixos-3c72017e817ce77a2d7b6a6de7afbd43166da138.tar.bz2 nixos-3c72017e817ce77a2d7b6a6de7afbd43166da138.tar.xz nixos-3c72017e817ce77a2d7b6a6de7afbd43166da138.zip |
...
-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 | ||