From f41fcce8c662a9f72c7d1e2a3106c337d07bac69 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 26 Feb 2023 04:36:21 +0100 Subject: [PATCH] common: add some more nix options --- hosts/common.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/hosts/common.nix b/hosts/common.nix index 8abb88b..3cf344e 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -10,17 +10,15 @@ in { package = unstable-pkgs.nixVersions.stable; distributedBuilds = config.networking.hostName != "Tsuki"; - extraOptions = '' - experimental-features = nix-command flakes - builders-use-substitutes = true - allowed-uris = http:// https:// - ''; - settings = { + allow-dirty = true; + allowed-uris = [ "http://" "https://" ]; + auto-optimise-store = true; + binary-caches = [ "https://cache.nixos.org/" ]; + builders-use-substitutes = true; + experimental-features = [ "nix-command" "flakes" "repl-flake" ]; + log-lines = 50; trusted-users = [ "h7x4" "nix-builder" ]; - binary-caches = [ - "https://cache.nixos.org/" - ]; }; buildMachines = [