From 55e31c03fc638c019ca51f807d95cd67d06ef024 Mon Sep 17 00:00:00 2001 From: tux Date: Sat, 22 Feb 2025 16:27:26 +0530 Subject: [PATCH] feat: set optimal nix settings --- modules/base/nix.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/base/nix.nix b/modules/base/nix.nix index 112b42c..55877f8 100644 --- a/modules/base/nix.nix +++ b/modules/base/nix.nix @@ -5,11 +5,22 @@ }: { nix = { package = pkgs.lix; + + gc = { + automatic = true; + options = "--delete-older-than 3d"; + }; + + channel.enable = false; + settings = { - experimental-features = "nix-command flakes"; auto-optimise-store = true; + allowed-users = ["${username}"]; trusted-users = ["${username}"]; + experimental-features = "nix-command flakes"; + keep-going = true; warn-dirty = false; + http-connections = 50; }; }; }