nixos-system/modules/nix.nix

32 lines
749 B
Nix
Raw Normal View History

2024-04-08 19:36:52 -04:00
_: {
nh = {
enable = true;
clean = {
enable = true;
dates = "weekly";
extraArgs = "--keep-since 3d --keep 5";
};
};
nix = {
settings = {
extra-experimental-features = ["flakes" "nix-command"];
auto-optimise-store = true;
builders-use-substitutes = true;
keep-outputs = true;
allowed-users = ["@wheel"];
trusted-users = ["root" "@wheel"];
substituters = [
"https://cache.flake.sh/kyasshu"
"https://cache.nixos.org"
];
trusted-public-keys = [
"kyasshu:g1heIgCgG7M4San6nRsz/omcVQ1GTc7+zKKm3L9Co7o="
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
];
};
};
nixpkgs.config.allowUnfree = true;
}