diff options
Diffstat (limited to 'custom/btrfs-snapshots.nix')
-rw-r--r-- | custom/btrfs-snapshots.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/custom/btrfs-snapshots.nix b/custom/btrfs-snapshots.nix index 9dc3f1f8..39e0bf0c 100644 --- a/custom/btrfs-snapshots.nix +++ b/custom/btrfs-snapshots.nix | |||
@@ -13,13 +13,11 @@ in { | |||
13 | enable = mkEnableOption "a systemd unit for btrfs snapshots"; | 13 | enable = mkEnableOption "a systemd unit for btrfs snapshots"; |
14 | 14 | ||
15 | mountPoint = mkOption { | 15 | mountPoint = mkOption { |
16 | readOnly = true; | ||
17 | type = types.path; | 16 | type = types.path; |
18 | default = "/mnt"; | 17 | default = "/mnt"; |
19 | }; | 18 | }; |
20 | 19 | ||
21 | mountPrefix = mkOption { | 20 | mountPrefix = mkOption { |
22 | readOnly = true; | ||
23 | type = types.str; | 21 | type = types.str; |
24 | default = "snapshot-"; | 22 | default = "snapshot-"; |
25 | }; | 23 | }; |
@@ -41,7 +39,7 @@ in { | |||
41 | config = mkIf cfg.enable { | 39 | config = mkIf cfg.enable { |
42 | 40 | ||
43 | system.activationScripts."btrfs-snapshots" = '' | 41 | system.activationScripts."btrfs-snapshots" = '' |
44 | mkdir -p ${mountPoint} | 42 | mkdir -p ${cfg.mountPoint} |
45 | ''; | 43 | ''; |
46 | 44 | ||
47 | systemd.services."btrfs-snapshot@" = { | 45 | systemd.services."btrfs-snapshot@" = { |