nixos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 1db02bf2df3873d0748818f5eb1796593fe2368a
parent a3327faae8b5e8470b346279e7877c12734f1c20
Author: Toni Brown <me@tb148.net>
Date:   Thu, 26 Feb 2026 11:50:52 +0800

save local disk space

Diffstat:
Mconfiguration.nix | 19++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/configuration.nix b/configuration.nix @@ -37,6 +37,7 @@ enable = true; efiSupport = true; device = "nodev"; + configurationLimit = 16; }; boot.loader.efi.canTouchEfiVariables = true; boot.kernelPackages = pkgs.linuxPackages_latest; @@ -104,12 +105,20 @@ }; systemd.services.mihomo.environment.SKIP_SYSTEM_IPV6_CHECK = "true"; + nix.gc = { + automatic = true; + dates = "daily"; + options = "--delete-older-than 7d"; + }; nix.package = pkgs.lixPackageSets.latest.lix; - nix.settings.experimental-features = [ - "nix-command" - "flakes" - ]; - nix.settings.substituters = lib.mkForce ["https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"]; + nix.settings = { + auto-optimise-store = true; + experimental-features = [ + "nix-command" + "flakes" + ]; + substituters = lib.mkForce ["https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"]; + }; time.timeZone = "Asia/Shanghai"; services.timesyncd = {