24 lines
500 B
Nix
24 lines
500 B
Nix
|
{
|
||
|
pkgs,
|
||
|
lib,
|
||
|
inputs,
|
||
|
...
|
||
|
}: {
|
||
|
nix = {
|
||
|
registry = builtins.mapAttrs (_: v: {flake = v;}) (lib.filterAttrs (_: v: v ? outputs) inputs);
|
||
|
package = pkgs.nixUnstable;
|
||
|
gc.automatic = true;
|
||
|
optimise.automatic = true;
|
||
|
extraOptions = ''
|
||
|
min-free = 536870912
|
||
|
keep-outputs = true
|
||
|
keep-derivations = true
|
||
|
fallback = true
|
||
|
'';
|
||
|
useSandbox = true;
|
||
|
allowedUsers = ["@wheel"];
|
||
|
trustedUsers = ["root" "@wheel"];
|
||
|
autoOptimiseStore = true;
|
||
|
};
|
||
|
}
|