{ inputs, lib, ... }: { nix = { settings = { auto-optimise-store = lib.mkDefault true; build-dir = "/var/tmp"; experimental-features = [ "nix-command" "flakes" ]; #flake-registry = ""; # Disable global flake registry This is a hold-over setting from Misterio77. Not sure significance but likely to do with nix.registry entry below. trusted-users = [ "root" "@wheel" ]; warn-dirty = false; }; # Add each flake input as a registry to make nix3 commands consistent with your flake #registry = lib.mapAttrs (_: value: { flake = value; }) inputs; # Add nixpkgs input to NIX_PATH # This lets nix2 commands still use #nixPath = [ "nixpkgs=${inputs.nixpkgs.outPath}" ]; # Garbage Collection gc = { automatic = true; dates = "weekly"; randomizedDelaySec = "14m"; # Keep the last 2 generations options = "--delete-older-than 28d"; }; }; }