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;
|
||||
buildMachines = [
|
||||
{
|
||||
hostName = "sh.darksailor.dev";
|
||||
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"];
|
||||
# }
|
||||
../../builders/mirai.nix
|
||||
../../builders/shiro.nix
|
||||
];
|
||||
distributedBuilds = true;
|
||||
};
|
||||
|
||||
users.users.remotebuilder = {
|
||||
isNormalUser = true;
|
||||
openssh.authorizedKeys.keyFiles = [../../secrets/id_ed25519.pub];
|
||||
};
|
||||
|
||||
# security.pam.enableSudoTouchIdAuth = true;
|
||||
# system.patches = [
|
||||
# (pkgs.writeText "pam-reattach.patch"
|
||||
|
||||
@@ -73,13 +73,8 @@
|
||||
};
|
||||
package = pkgs.nixVersions.latest;
|
||||
buildMachines = [
|
||||
{
|
||||
hostName = "sh.darksailor.dev";
|
||||
sshUser = "remotebuilder";
|
||||
system = "x86_64-linux";
|
||||
protocol = "ssh-ng";
|
||||
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
|
||||
}
|
||||
../../builders/mirai.nix
|
||||
../../builders/shiro.nix
|
||||
];
|
||||
distributedBuilds = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user