hosts: *: intial try remoteBuilder

This commit is contained in:
2023-09-23 21:19:53 +02:00
parent 1402e6a7be
commit a4debe09ee
7 changed files with 65 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
{ pkgs, ... }:
{
users.users.nixremote = { # System User
isNormalUser = true;
extraGroups = [ "kvm" ];
shell = pkgs.zsh; # Default shell
uid = 1001;
# initialPassword = "password95";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILczsj4W1kFQaalFwaY+RJ4LEzNeFKD+itXB40Q2O59M nixremote@hades"
];
};
}

View File

@@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
{
nix = {
distributedBuilds = true;
buildMachines = [ {
hostName = "hades";
system = "x86_64-linux";
supportedFeatures = [ "kvm" "big-parallel" ];
sshUser = "nixremote"
sshKey = config.age.secrets."keys/nixremote".path;
maxJobs = 1;
speedFactor = 8;
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUVnbld5UVVVYSt2Y0hBS3g2ZWRiVGdxVzhwaCtNQ2lTNmZVd1lqWWNTK28gcm9vdEBoYWRlcwo=%";
protocol = "ssh-ng";
] };
};
age.secrets."keys/nixremote" = {
file = ../../../secrets/keys/nixremote.age;
owner = "root";
};
}