diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-06-08 23:44:59 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-06-10 16:42:50 -0600 |
| commit | 905a306a705fc7bf9f0d03945bfe692c530dd05e (patch) | |
| tree | eb471b486271d66ea271f903b3e2cd7a98f1d233 /sys/fs | |
| parent | 3eb118d309fadbeed76963ef2d956c8cbf2528e2 (diff) | |
flake: update to 23.05
Diffstat (limited to '')
| -rw-r--r-- | sys/fs/btrfs.nix | 76 | ||||
| -rw-r--r-- | sys/fs/default.nix | 2 |
2 files changed, 38 insertions, 40 deletions
diff --git a/sys/fs/btrfs.nix b/sys/fs/btrfs.nix index 809d35e..f240b0d 100644 --- a/sys/fs/btrfs.nix +++ b/sys/fs/btrfs.nix @@ -59,58 +59,56 @@ in services.snapper.configs = let snapperConfig = _: subvolume: { - inherit subvolume; + SUBVOLUME = subvolume; - extraConfig = '' - # btrfs qgroup for space aware cleanup algorithms - QGROUP="" + # btrfs qgroup for space aware cleanup algorithms + QGROUP = ""; - # fraction of the filesystems space the snapshots may use - SPACE_LIMIT="0.5" + # fraction of the filesystems space the snapshots may use + SPACE_LIMIT = "0.5"; - # fraction of the filesystems space that should be free - FREE_LIMIT="0.2" + # fraction of the filesystems space that should be free + FREE_LIMIT = "0.2"; - # users and groups allowed to work with config - ALLOW_USERS="" - ALLOW_GROUPS="" + # users and groups allowed to work with config + ALLOW_USERS = [ ]; + ALLOW_GROUPS = [ ]; - # sync users and groups from ALLOW_USERS and ALLOW_GROUPS to .snapshots - # directory - SYNC_ACL="no" + # sync users and groups from ALLOW_USERS and ALLOW_GROUPS to .snapshots + # directory + SYNC_ACL = "no"; - # start comparing pre- and post-snapshot in background after creating - # post-snapshot - BACKGROUND_COMPARISON="yes" + # start comparing pre- and post-snapshot in background after creating + # post-snapshot + BACKGROUND_COMPARISON = "yes"; - # run daily number cleanup - NUMBER_CLEANUP="yes" + # run daily number cleanup + NUMBER_CLEANUP = "yes"; - # limit for number cleanup - NUMBER_MIN_AGE="1800" - NUMBER_LIMIT="100" - NUMBER_LIMIT_IMPORTANT="10" + # limit for number cleanup + NUMBER_MIN_AGE = "1800"; + NUMBER_LIMIT = "100"; + NUMBER_LIMIT_IMPORTANT = "10"; - # create hourly snapshots - TIMELINE_CREATE="yes" + # create hourly snapshots + TIMELINE_CREATE = true; - # cleanup hourly snapshots after some time - TIMELINE_CLEANUP="yes" + # cleanup hourly snapshots after some time + TIMELINE_CLEANUP = true; - # limits for timeline cleanup - TIMELINE_MIN_AGE="1800" - TIMELINE_LIMIT_HOURLY="24" - TIMELINE_LIMIT_DAILY="7" - TIMELINE_LIMIT_WEEKLY="4" - TIMELINE_LIMIT_MONTHLY="12" - TIMELINE_LIMIT_YEARLY="10" + # limits for timeline cleanup + TIMELINE_MIN_AGE = "1800"; + TIMELINE_LIMIT_HOURLY = "24"; + TIMELINE_LIMIT_DAILY = "7"; + TIMELINE_LIMIT_WEEKLY = "4"; + TIMELINE_LIMIT_MONTHLY = "12"; + TIMELINE_LIMIT_YEARLY = "10"; - # cleanup empty pre-post-pairs - EMPTY_PRE_POST_CLEANUP="yes" + # cleanup empty pre-post-pairs + EMPTY_PRE_POST_CLEANUP = "yes"; - # limits for empty pre-post-pair cleanup - EMPTY_PRE_POST_MIN_AGE="1800" - ''; + # limits for empty pre-post-pair cleanup + EMPTY_PRE_POST_MIN_AGE = "1800"; }; in mapAttrs snapperConfig cfg.snapperSubvols; diff --git a/sys/fs/default.nix b/sys/fs/default.nix index 04b8acb..41871df 100644 --- a/sys/fs/default.nix +++ b/sys/fs/default.nix @@ -18,7 +18,7 @@ in config = { # !!! - boot.tmpOnTmpfs = true; + boot.tmp.useTmpfs = true; fileSystems."/" = mkIf cfg.impermanence { device = "tmpfs"; |
