{ pkgs, lib, inputs, ... }: { nix = { package = pkgs.lixPackageSets.git.lix; registry = builtins.mapAttrs (_: v: { flake = v; }) (lib.filterAttrs (_: v: v ? outputs) inputs); gc.automatic = false; optimise.automatic = true; extraOptions = '' min-free = 536870912 keep-outputs = true keep-derivations = true fallback = true extra-experimental-features = nix-command flakes builders-use-substitutes = true ''; nixPath = [ "nixpkgs=${inputs.nixpkgs}" "home-manager=${inputs.home}" ]; }; nix.settings = { sandbox = true; allowed-users = [ "@wheel" ]; trusted-users = [ "root" "@wheel" ]; auto-optimise-store = true; }; }