diff --git a/configuration.nix b/configuration.nix index 684fbbe..e4e985d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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"; }