feat: Added remotebuilder to nix-darwin

This commit is contained in:
uttarayan21
2025-02-08 00:24:11 +05:30
parent 7c926824d1
commit 25b64efcb2
4 changed files with 23 additions and 21 deletions

7
builders/mirai.nix Normal file
View 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
View File

@@ -0,0 +1,7 @@
{
hostName = "shiro";
sshUser = "remotebuilder";
system = "aarch64-darwin";
protocol = "ssh-ng";
supportedFeatures = ["benchmark" "big-parallel" "kvm"];
}

View File

@@ -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"

View File

@@ -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;
}; };