From fb8d2e44a70a2e585d9da9f0a1cfe1d2c9a7b902 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Tue, 26 Sep 2023 09:57:42 -0400 Subject: add fstrim options for ssd systems --- systems/default.nix | 3 ++- systems/jonbox/default.nix | 3 ++- systems/jontop/default.nix | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'systems') diff --git a/systems/default.nix b/systems/default.nix index f7e968f..1cd1037 100644 --- a/systems/default.nix +++ b/systems/default.nix @@ -29,7 +29,8 @@ gc = { automatic = true; - dates = "Fri"; + dates = "weekly"; + options = "--delete-older-than 7d" }; }; diff --git a/systems/jonbox/default.nix b/systems/jonbox/default.nix index cf641f5..16cf6a2 100644 --- a/systems/jonbox/default.nix +++ b/systems/jonbox/default.nix @@ -40,7 +40,8 @@ package = config.boot.kernelPackages.nvidiaPackages.stable; }; - programs.light.enable = true; + services.fstrim.enable = true; + nix.settings.auto-optimize-store = true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; diff --git a/systems/jontop/default.nix b/systems/jontop/default.nix index 1ce9aaf..43ffcea 100644 --- a/systems/jontop/default.nix +++ b/systems/jontop/default.nix @@ -25,6 +25,8 @@ programs.light.enable = true; + services.fstrim.enable = true; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; } -- cgit v1.2.1