async distributed compilation

This commit is contained in:
Tao Tien 2024-04-25 14:05:35 -07:00
parent 6d5415cb36
commit fa94214498
2 changed files with 29 additions and 0 deletions

View file

@ -59,6 +59,13 @@
nixos-cosmic,
...
} @ inputs: {
hydraJobs = {
# inherit
# (self)
# nixosConfigurations.NOlaptop
# ;
x86_64-linux.NOlaptop = self.nixosConfigurations.NOlaptop.config.system.build.toplevel;
};
nixosConfigurations = {
NOcomputer = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";

View file

@ -13,6 +13,28 @@
boot.kernel.sysctl."net.ipv4.ip_forward" = "1";
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = "1";
nix.buildMachines = [
{
hostName = "localhost";
systems = ["x86_64-linux" "i686-linux"];
supportedFeatures = ["big-parallel" "kvm" "nixos-test" "benchmark"];
}
];
nix.extraOptions = ''
builders-use-substitutes = true
'';
services.hydra = {
enable = true;
hydraURL = "http://localhost:3000";
notificationSender = "hydra@localhost";
useSubstitutes = true;
};
nix.settings.allowed-uris = [
"github:"
"git+https://github.com/"
"git+ssh://github.com/"
];
# services.foldingathome = {
# enable = true;
# team = 223518;