summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2025-04-11 20:30:29 -0400
committerAnthony Wang2025-04-11 20:30:29 -0400
commit8a9543c4af52dd58b0e3bfda4be5e21e368a7c32 (patch)
treea3d941b27b381e6e492fb4da7a9149b5bb564702
parentc37114d46d930fc6fb788aae34dea7f04e41a207 (diff)
Automatically clean up Nix storeHEADmaster
-rw-r--r--configuration.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/configuration.nix b/configuration.nix
index 8cc741c..92c1c92 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -15,6 +15,17 @@
./hardware-configuration.nix
];
+ # Stop the Nix store from becoming 100GB
+ nix.gc = {
+ automatic = true;
+ dates = "weekly";
+ options = "--delete-older-than 7d";
+ };
+ nix.optimise = {
+ automatic = true;
+ # Not sure why the inconsistency...
+ dates = [ "weekly" ];
+ };
# Don't trash my $HOME please
nix.settings.use-xdg-base-directories = true;
# Fancy stuff yay
@@ -22,6 +33,8 @@
"nix-command"
"flakes"
];
+
+ # Overlays! Fixed points!
nixpkgs.overlays = [ (import ./overlays.nix) ];
# Use a better rebuild tool instead of a Bash script
@@ -45,6 +58,7 @@
# Oh noes I'm leaking personal info help mayday disaster alert
time.timeZone = "US/Eastern";
+ # I NEED ZSTD
# NixOS is a disk destroyer
fileSystems = {
"/".options = [ "compress=zstd" ];