feat: Add remote build machines

This commit is contained in:
uttarayan21
2024-11-18 18:02:17 +05:30
parent 30f467d0c0
commit 946b9f00e2
2 changed files with 27 additions and 1 deletions

View File

@@ -11,8 +11,19 @@
extraOptions = '' extraOptions = ''
build-users-group = nixbld build-users-group = nixbld
extra-nix-path = nixpkgs=flake:nixpkgs extra-nix-path = nixpkgs=flake:nixpkgs
builders-use-substitutes = true
''; '';
package = pkgs.nixVersions.latest; package = pkgs.nixVersions.latest;
buildMachines = [
{
hostName = "sh.darksailor.dev";
sshUser = "fs0c131y";
system = "x86_64-linux";
protocol = "ssh-ng";
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
}
];
distributedBuilds = true;
}; };
# security.pam.enableSudoTouchIdAuth = true; # security.pam.enableSudoTouchIdAuth = true;

View File

@@ -19,16 +19,31 @@
nix = { nix = {
settings = { settings = {
auto-optimise-store = true; # Did you read the comment? auto-optimise-store = true;
extra-experimental-features = "nix-command flakes auto-allocate-uids"; extra-experimental-features = "nix-command flakes auto-allocate-uids";
trusted-users = ["root" "servius"]; trusted-users = ["root" "servius"];
}; };
extraOptions = ''
build-users-group = nixbld
extra-nix-path = nixpkgs=flake:nixpkgs
builders-use-substitutes = true
'';
gc = { gc = {
automatic = true; automatic = true;
dates = "daily"; dates = "daily";
options = "--delete-older-than +5"; options = "--delete-older-than +5";
}; };
package = pkgs.nixVersions.latest; package = pkgs.nixVersions.latest;
buildMachines = [
{
hostName = "sh.darksailor.dev";
sshUser = "fs0c131y";
system = "x86_64-linux";
protocol = "ssh-ng";
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
}
];
distributedBuilds = true;
}; };
services = { services = {