2022-04-09 21:33:13 +03:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
inputs,
|
2022-07-30 03:04:32 +03:00
|
|
|
config,
|
2022-04-09 21:33:13 +03:00
|
|
|
...
|
|
|
|
}: {
|
|
|
|
nix = {
|
2022-05-28 16:12:53 +03:00
|
|
|
registry =
|
|
|
|
builtins.mapAttrs
|
|
|
|
(_: v: {flake = v;})
|
|
|
|
(lib.filterAttrs (_: v: v ? outputs) inputs);
|
|
|
|
package = pkgs.nix;
|
2022-08-17 00:20:16 +03:00
|
|
|
gc.automatic = false;
|
2022-04-09 21:33:13 +03:00
|
|
|
optimise.automatic = true;
|
|
|
|
extraOptions = ''
|
|
|
|
min-free = 536870912
|
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
|
|
|
fallback = true
|
2022-04-10 08:18:19 +03:00
|
|
|
extra-experimental-features = nix-command flakes
|
2022-05-03 21:12:47 +03:00
|
|
|
builders-use-substitutes = true
|
2022-07-30 03:04:32 +03:00
|
|
|
netrc-file = /etc/nix/netrc
|
2022-04-09 21:33:13 +03:00
|
|
|
'';
|
2022-04-17 19:20:06 +03:00
|
|
|
nixPath = ["nixpkgs=${inputs.nixpkgs}" "home-manager=${inputs.home}"];
|
2022-04-09 21:33:13 +03:00
|
|
|
};
|
2022-07-12 01:22:30 +03:00
|
|
|
nix.settings = {
|
|
|
|
sandbox = true;
|
|
|
|
allowed-users = ["@wheel"];
|
|
|
|
trusted-users = ["root" "@wheel"];
|
|
|
|
auto-optimise-store = true;
|
|
|
|
};
|
2022-04-09 21:33:13 +03:00
|
|
|
}
|