nixos/system/core/nix.nix
2025-03-24 02:59:38 +01:00

39 lines
717 B
Nix

{ ... }:
{
nix = {
gc = {
automatic = true;
dates = "05:30";
options = "--delete-older-than 7d";
};
settings = {
keep-outputs = true;
auto-optimise-store = true;
experimental-features = [
"nix-command"
"flakes"
];
trusted-users = [
"root"
"nixremote"
"@wheel"
];
builders-use-substitutes = true;
};
distributedBuilds = true;
buildMachines = [
{
hostName = "lilith-server-builder";
system = "x86_64-linux";
protocol = "ssh-ng";
}
{
hostName = "lilith-pc";
system = "x86_64-linux";
protocol = "ssh-ng";
}
];
};
}