From 6ddc25d4e189c30431703f602653b8bae861e4af Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 29 Aug 2024 20:54:34 -0700 Subject: some stuff --- modules/nix.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 modules/nix.nix (limited to 'modules/nix.nix') 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; + }; +} -- cgit v1.2.3