Add nix config
This commit is contained in:
parent
a4bb885dd1
commit
b7907aa122
1 changed files with 20 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{ lib, pkgs, inputs, ... }:
|
||||
|
||||
let address = "129.199.146.101";
|
||||
in
|
||||
|
@ -69,5 +69,24 @@ in
|
|||
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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue