feat: Added remotebuilder to nix-darwin
This commit is contained in:
7
builders/mirai.nix
Normal file
7
builders/mirai.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
hostName = "sh.darksailor.dev";
|
||||||
|
sshUser = "remotebuilder";
|
||||||
|
system = "x86_64-linux";
|
||||||
|
protocol = "ssh-ng";
|
||||||
|
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
|
||||||
|
}
|
||||||
7
builders/shiro.nix
Normal file
7
builders/shiro.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
hostName = "shiro";
|
||||||
|
sshUser = "remotebuilder";
|
||||||
|
system = "aarch64-darwin";
|
||||||
|
protocol = "ssh-ng";
|
||||||
|
supportedFeatures = ["benchmark" "big-parallel" "kvm"];
|
||||||
|
}
|
||||||
@@ -28,24 +28,17 @@
|
|||||||
'';
|
'';
|
||||||
package = pkgs.nixVersions.latest;
|
package = pkgs.nixVersions.latest;
|
||||||
buildMachines = [
|
buildMachines = [
|
||||||
{
|
../../builders/mirai.nix
|
||||||
hostName = "sh.darksailor.dev";
|
../../builders/shiro.nix
|
||||||
sshUser = "remotebuilder";
|
|
||||||
system = "x86_64-linux";
|
|
||||||
protocol = "ssh-ng";
|
|
||||||
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
|
|
||||||
}
|
|
||||||
# {
|
|
||||||
# hostName = "shiro";
|
|
||||||
# sshUser = "remotebuilder";
|
|
||||||
# system = "aarch64-darwin";
|
|
||||||
# protocol = "ssh-ng";
|
|
||||||
# supportedFeatures = ["benchmark" "big-parallel" "kvm"];
|
|
||||||
# }
|
|
||||||
];
|
];
|
||||||
distributedBuilds = true;
|
distributedBuilds = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.users.remotebuilder = {
|
||||||
|
isNormalUser = true;
|
||||||
|
openssh.authorizedKeys.keyFiles = [../../secrets/id_ed25519.pub];
|
||||||
|
};
|
||||||
|
|
||||||
# security.pam.enableSudoTouchIdAuth = true;
|
# security.pam.enableSudoTouchIdAuth = true;
|
||||||
# system.patches = [
|
# system.patches = [
|
||||||
# (pkgs.writeText "pam-reattach.patch"
|
# (pkgs.writeText "pam-reattach.patch"
|
||||||
|
|||||||
@@ -73,13 +73,8 @@
|
|||||||
};
|
};
|
||||||
package = pkgs.nixVersions.latest;
|
package = pkgs.nixVersions.latest;
|
||||||
buildMachines = [
|
buildMachines = [
|
||||||
{
|
../../builders/mirai.nix
|
||||||
hostName = "sh.darksailor.dev";
|
../../builders/shiro.nix
|
||||||
sshUser = "remotebuilder";
|
|
||||||
system = "x86_64-linux";
|
|
||||||
protocol = "ssh-ng";
|
|
||||||
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
distributedBuilds = true;
|
distributedBuilds = true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user