Add nix config

This commit is contained in:
Constantin Gierczak--Galle 2024-11-03 16:17:02 +01:00
parent a4bb885dd1
commit b7907aa122
No known key found for this signature in database

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }: { lib, pkgs, inputs, ... }:
let address = "129.199.146.101"; let address = "129.199.146.101";
in in
@ -69,5 +69,24 @@ in
recommendedGzipSettings = true; recommendedGzipSettings = true;
}; };
nix = {
settings = {
trusted-users = [ "@wheel" "root" "nix-ssh" ];
auto-optimise-store = true;
};
#package = pkgs.nixUnstable;
extraOptions = let
empty_registry = builtins.toFile "empty-flake-registry.json"
''{"flakes":[],"version":2}'';
in ''
experimental-features = nix-command flakes
flake-registry = ${empty_registry}
builders-use-substitutes = true
'';
registry.nixpkgs.flake = inputs.nixpkgs;
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
};
system.stateVersion = "24.05"; system.stateVersion = "24.05";
} }