os/modules/core/nix.nix

30 lines
713 B
Nix
Raw Normal View History

{
2022-11-20 22:28:23 +00:00
config,
pkgs,
lib,
inputs,
...
}: {
nix = {
# Use default version alias for nix package
package = pkgs.nix;
# Improve nix store disk usage
autoOptimiseStore = true;
gc.automatic = true;
optimise.automatic = true;
# Prevents impurities in builds
useSandbox = true;
# give root and @wheel special privileges with nix
2022-11-20 22:28:23 +00:00
trustedUsers = ["root" "@wheel"];
# This is just a representation of the nix default
2022-11-20 22:28:23 +00:00
systemFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
# Generally useful nix option defaults
extraOptions = ''
min-free = 536870912
keep-outputs = true
keep-derivations = true
fallback = true
'';
};
}