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 --- home/jon/home.nix | 1 + systems/default.nix | 3 ++- systems/jonbox/default.nix | 3 ++- systems/jontop/default.nix | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/home/jon/home.nix b/home/jon/home.nix index b4c4032..6fb6d02 100644 --- a/home/jon/home.nix +++ b/home/jon/home.nix @@ -48,6 +48,7 @@ in programs.ncmpcpp.enable = true; programs.zathura.enable = true; + programs.bashmount.enable = true; programs.mpv = { enable = true; 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