[config] reduce /nix size

This commit is contained in:
2024-06-22 20:40:59 +08:00
parent 3790572079
commit 277139f855
+8
View File
@@ -22,6 +22,7 @@
grub = { grub = {
efiSupport = true; efiSupport = true;
device = "nodev"; device = "nodev";
configurationLimit = 10;
}; };
}; };
@@ -35,6 +36,13 @@
substituters = [ substituters = [
"https://mirrors.ustc.edu.cn/nix-channels/store" "https://mirrors.ustc.edu.cn/nix-channels/store"
]; ];
auto-optimise-store = true;
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 1w";
}; };
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run: