main
 1{den, ...}: {
 2  den.aspects.core.includes = [den.aspects.core.nix];
 3  den.aspects.core.nix = {
 4    nixos = {
 5      nix.settings = {
 6        experimental-features = [
 7          "auto-allocate-uids"
 8          "cgroups"
 9        ];
10        # Select UIDs for builds automatically
11        auto-allocate-uids = true;
12        # Required by auto-allocate-uids
13        use-cgroups = true;
14        # Automatically hard link identical files in the Nix store
15        auto-optimise-store = true;
16        # Remote servers preferred substituters instead of local builders
17        builders-use-substitutes = true;
18        # Unlimited HTTP connections
19        http-connections = 0;
20        # Use `$XDG_STATE_HOME/nix/...` instead of `$HOME/.nix-...`
21        use-xdg-base-directories = true;
22
23        trusted-users = ["@wheel"];
24      };
25
26      system.copySystemConfiguration = false;
27    };
28  };
29}