nixos/system/core/nix.nix
2026-06-21 17:58:06 +02:00

96 lines
2.1 KiB
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"
];
substituters = [ "https://hyprland.cachix.org" ];
trusted-substituters = [ "https://hyprland.cachix.org" ];
trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ];
builders-use-substitutes = true;
};
distributedBuilds = true;
buildMachines = [
{
hostName = "lilith-server-builder";
sshUser = "nixremote";
sshKey = "/root/.ssh/nixremote";
system = "x86_64-linux";
protocol = "ssh-ng";
speedFactor = 4;
maxJobs = 16;
supportedFeatures = [
"kvm"
"big-parallel"
"nixos-test"
"benchmark"
];
}
{
hostName = "lilith-pc-builder";
sshUser = "nixremote";
sshKey = "/root/.ssh/nixremote";
system = "x86_64-linux";
protocol = "ssh-ng";
speedFactor = 8;
maxJobs = 32;
supportedFeatures = [
"kvm"
"big-parallel"
"nixos-test"
"benchmark"
];
}
{
hostName = "lilith-pad-builder";
sshUser = "nixremote";
sshKey = "/root/.ssh/nixremote";
system = "x86_64-linux";
protocol = "ssh-ng";
speedFactor = 1;
maxJobs = 4;
supportedFeatures = [
"kvm"
"big-parallel"
"nixos-test"
"benchmark"
];
}
{
hostName = "lilith-lab-builder";
sshUser = "nixremote";
sshKey = "/root/.ssh/nixremote";
system = "x86_64-linux";
protocol = "ssh-ng";
speedFactor = 1;
maxJobs = 2;
supportedFeatures = [
"kvm"
"big-parallel"
"nixos-test"
"benchmark"
];
}
];
};
}