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