diff --git a/base/nix.nix b/base/nix.nix index 7f2a701b..e3ff9364 100644 --- a/base/nix.nix +++ b/base/nix.nix @@ -1,17 +1,30 @@ { inputs, ... }: { - nix.gc.automatic = true; - nix.gc.options = "--delete-older-than 2d"; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix = { + gc = { + automatic = true; + options = "--delete-older-than 2d"; + }; - /* This makes commandline tools like - ** nix run nixpkgs#hello - ** and nix-shell -p hello - ** use the same channel the system - ** was built with - */ - nix.registry = { - nixpkgs.flake = inputs.nixpkgs; + settings = { + allow-dirty = true; + auto-optimise-store = true; + builders-use-substitutes = true; + experimental-features = [ "nix-command" "flakes" ]; + log-lines = 50; + use-xdg-base-directories = true; + }; + + /* This makes commandline tools like + ** nix run nixpkgs#hello + ** and nix-shell -p hello + ** use the same channel the system + ** was built with + */ + registry = { + "nixpkgs".flake = inputs.nixpkgs; + "pvv-nix".flake = inputs.self; + }; + nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; }; - nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; } \ No newline at end of file