add remote builder for hs
This commit is contained in:
parent
cadc429c05
commit
f7684f89c3
3 changed files with 34 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ in
|
|||
../common.nix
|
||||
../common-graphics.nix
|
||||
(import ../remote-disk-unlock.nix ["igb"] sshKeys)
|
||||
../builder.nix
|
||||
];
|
||||
|
||||
boot.loader = {
|
||||
|
|
|
|||
19
os/builder.nix
Normal file
19
os/builder.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ config, pkgs, ... }:
|
||||
let sshKeys = with (import ../sshKeys.nix); [
|
||||
hs
|
||||
];
|
||||
in
|
||||
{
|
||||
users.users.remotebuild = {
|
||||
isNormalUser = true;
|
||||
createHome = false;
|
||||
group = "remotebuild";
|
||||
shell = pkgs.bash;
|
||||
|
||||
openssh.authorizedKeys.keys = sshKeys;
|
||||
};
|
||||
|
||||
users.groups.remotebuild = {};
|
||||
|
||||
nix.settings.extra-trusted-users = [ "remotebuild" ];
|
||||
}
|
||||
|
|
@ -143,4 +143,18 @@ in {
|
|||
enable = true;
|
||||
secretKeyFile = "/var/cache-priv-key.pem";
|
||||
};
|
||||
|
||||
nix.distributedBuilds = true;
|
||||
nix.settings.builders-use-substitutes = true;
|
||||
|
||||
nix.buildMachines = [
|
||||
{
|
||||
hostName = "192.168.1.2";
|
||||
protocol = "ssh-ng";
|
||||
sshUser = "remotebuild";
|
||||
sshKey = "/home/ant/.ssh/id_ed25519";
|
||||
system = pkgs.stdenv.hostPlatform.system;
|
||||
supportedFeatures = [ "nixos-test" "big-parallel" "kvm" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue