From f3c31e4ad7fab36e151f3a2e207fafb1eda1a787 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 28 Aug 2024 20:36:04 -0700 Subject: hi --- modules/nix/default.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 modules/nix/default.nix (limited to 'modules/nix/default.nix') diff --git a/modules/nix/default.nix b/modules/nix/default.nix new file mode 100644 index 0000000..365dc77 --- /dev/null +++ b/modules/nix/default.nix @@ -0,0 +1,37 @@ +{ + nixpkgs.config.allowUnfree = true; + + nix = { + 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