diff options
Diffstat (limited to 'os/core/storage.nix')
| -rw-r--r-- | os/core/storage.nix | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/os/core/storage.nix b/os/core/storage.nix index fde9399..59f0093 100644 --- a/os/core/storage.nix +++ b/os/core/storage.nix @@ -5,32 +5,15 @@ in { options.os.core.storage = { enable = lib.mkEnableOption "enables storage management"; - - cleanDates = lib.mkOption { - type = lib.types.str; - default = "weekly"; - description = "how often to clean the system of old generations"; - }; }; config = lib.mkIf cfg.enable { nix.settings.auto-optimise-store = true; - - programs.nh = { - enable = true; - clean = { - enable = true; - dates = "${toString cfg.cleanDates}"; - extraArgs = "--keep 5"; - }; - }; - + programs.nh.enable = true; services.fstrim.enable = true; - services.btrfs.autoScrub = { - enable = true; - fileSystems = [ "/" ]; + enable = true; + fileSystems = [ "/" ]; }; - boot.tmp = { useTmpfs = true; tmpfsSize = "50%"; |
