2023-10-28 15:51:25 +02:00
|
|
|
{ config, lib, nixpkgs, ... }:
|
|
|
|
{
|
|
|
|
nix = {
|
|
|
|
# expose all flake inputs through nix Path and registry
|
|
|
|
registry = {
|
|
|
|
nixpkgs.flake = nixpkgs;
|
|
|
|
};
|
|
|
|
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
|
2024-06-27 12:07:02 +02:00
|
|
|
distributedBuilds = true;
|
2023-10-28 15:51:25 +02:00
|
|
|
settings = {
|
|
|
|
auto-optimise-store = true;
|
|
|
|
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
2024-01-04 00:13:46 +01:00
|
|
|
substituters = [
|
|
|
|
"https://cache.rfive.de"
|
2024-04-12 11:01:18 +02:00
|
|
|
"https://cache.ifsr.de"
|
2024-01-04 00:13:46 +01:00
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"cache.rfive.de:of5d+o6mfGXQSR3lk6ApfDBr4ampAUaNHux1O/XY3Tw="
|
2024-04-12 11:01:18 +02:00
|
|
|
"cache.ifsr.de:y55KBAMF4YkjIzXwYOKVk9fcQS+CZ9RM1zAAMYQJtsg="
|
2024-01-04 00:13:46 +01:00
|
|
|
];
|
2023-10-28 15:51:25 +02:00
|
|
|
};
|
2024-07-31 14:16:33 +02:00
|
|
|
# buildMachines = [
|
|
|
|
# # {
|
|
|
|
# # hostName = "quitte.ifsr.de";
|
|
|
|
# # sshUser = "rouven.seifert";
|
|
|
|
# # system = "x86_64-linux";
|
|
|
|
# # protocol = "ssh-ng";
|
|
|
|
# # supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
|
|
|
# # maxJobs = 4;
|
|
|
|
# # speedFactor = 10;
|
|
|
|
# # }
|
|
|
|
# {
|
|
|
|
# hostName = "fujitsu.vpn.rfive.de";
|
|
|
|
# system = "x86_64-linux";
|
|
|
|
# protocol = "ssh-ng";
|
|
|
|
# supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
|
|
|
# maxJobs = 4;
|
|
|
|
# speedFactor = 5;
|
|
|
|
# }
|
|
|
|
# ];
|
|
|
|
# extraOptions = ''
|
|
|
|
# builders-use-substitutes = true
|
|
|
|
# '';
|
2023-10-28 15:51:25 +02:00
|
|
|
};
|
|
|
|
}
|