summaryrefslogtreecommitdiffstats
path: root/systems
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2023-09-26 09:57:42 -0400
committerJon Santmyer <jon@jonsantmyer.com>2023-09-26 09:57:42 -0400
commitfb8d2e44a70a2e585d9da9f0a1cfe1d2c9a7b902 (patch)
treeddb03f24494bffa3f833f5e8d5fad3b1f7a66b5c /systems
parentb28259b353c3ee2d51a7cbdf0e90136ae846b68d (diff)
downloadnix-config-fb8d2e44a70a2e585d9da9f0a1cfe1d2c9a7b902.tar.gz
nix-config-fb8d2e44a70a2e585d9da9f0a1cfe1d2c9a7b902.tar.bz2
nix-config-fb8d2e44a70a2e585d9da9f0a1cfe1d2c9a7b902.zip
add fstrim options for ssd systems
Diffstat (limited to 'systems')
-rw-r--r--systems/default.nix3
-rw-r--r--systems/jonbox/default.nix3
-rw-r--r--systems/jontop/default.nix2
3 files changed, 6 insertions, 2 deletions
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;
}