diff options
Diffstat (limited to 'modules/nix.nix')
| -rw-r--r-- | modules/nix.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/modules/nix.nix b/modules/nix.nix new file mode 100644 index 0000000..26d79ef --- /dev/null +++ b/modules/nix.nix @@ -0,0 +1,42 @@ +{ + nixpkgs.config.allowUnfree = true; + + nix = { + allowedUsers = [ + "root" + "@wheel" + ]; + + settings = { + auto-optimise-store = true; + http-connections = 50; + warn-dirty = false; + log-lines = 50; + # sandbox = "relaxed"; + + trusted-users = [ + "root" + "@wheel" + ]; + + substituters = [ + "https://nix-community.cachix.org" + "https://hyprland.cachix.org" + "https://ghostty.cachix.org" + ]; + + experimental-features = [ + "nix-command" + "flakes" + ]; + }; + + gc = { + automatic = false; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; + + # distributedBuilds = true; + }; +} |