common: add some more nix options

This commit is contained in:
Oystein Kristoffer Tveit 2023-02-26 04:36:21 +01:00
parent 7c3c830d6e
commit f41fcce8c6
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 7 additions and 9 deletions

View File

@ -10,17 +10,15 @@ in {
package = unstable-pkgs.nixVersions.stable; package = unstable-pkgs.nixVersions.stable;
distributedBuilds = config.networking.hostName != "Tsuki"; distributedBuilds = config.networking.hostName != "Tsuki";
extraOptions = ''
experimental-features = nix-command flakes
builders-use-substitutes = true
allowed-uris = http:// https://
'';
settings = { 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" ]; trusted-users = [ "h7x4" "nix-builder" ];
binary-caches = [
"https://cache.nixos.org/"
];
}; };
buildMachines = [ buildMachines = [