1{
2 pkgs,
3 lib,
4 inputs,
5 ...
6}:
7{
8 nix = {
9 package = pkgs.lixPackageSets.git.lix;
10 registry = builtins.mapAttrs (_: v: { flake = v; }) (lib.filterAttrs (_: v: v ? outputs) inputs);
11 gc.automatic = false;
12 optimise.automatic = true;
13 extraOptions = ''
14 min-free = 536870912
15 keep-outputs = true
16 keep-derivations = true
17 fallback = true
18 extra-experimental-features = nix-command flakes
19 builders-use-substitutes = true
20 '';
21 nixPath = [
22 "nixpkgs=${inputs.nixpkgs}"
23 "home-manager=${inputs.home}"
24 ];
25 };
26
27 nix.settings = {
28 sandbox = true;
29 allowed-users = [ "@wheel" ];
30 trusted-users = [
31 "root"
32 "@wheel"
33 ];
34 auto-optimise-store = true;
35 };
36}