nixos/system/core/nix.nix
2025-05-21 14:17:33 +02:00

72 lines
1.5 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";
system = "x86_64-linux";
protocol = "ssh-ng";
speedFactor = 4;
supportedFeatures = [
"kvm"
"big-parallel"
"nixos-test"
"benchmark"
];
}
{
hostName = "lilith-pc-builder";
system = "x86_64-linux";
protocol = "ssh-ng";
speedFactor = 8;
supportedFeatures = [
"kvm"
"big-parallel"
"nixos-test"
"benchmark"
];
}
{
hostName = "lilith-pad-builder";
system = "x86_64-linux";
protocol = "ssh-ng";
speedFactor = 1;
supportedFeatures = [
"kvm"
"big-parallel"
"nixos-test"
"benchmark"
];
}
];
};
}