Merge branch 'master' of git.bitlab21.com:sam/nixos
This commit is contained in:
commit
6d9c8f18d5
|
@ -1,24 +1,15 @@
|
||||||
{ pkgs, configVars, ... }:
|
|
||||||
let
|
|
||||||
remoteBuilderIp = configVars.networking.addresses.remote-builder.ip;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
nix.distributedBuilds = true;
|
users.users.remotebuild = {
|
||||||
nix.settings.builders-use-substitutes = true;
|
isNormalUser = true;
|
||||||
|
createHome = false;
|
||||||
|
group = "remotebuild";
|
||||||
|
|
||||||
nix.buildMachines = [
|
openssh.authorizedKeys.keyFiles = [
|
||||||
{
|
./remotebuild.pub
|
||||||
hostName = remoteBuilderIp;
|
|
||||||
sshUser = "remotebuild";
|
|
||||||
sshKey = "/root/.ssh/remotebuild";
|
|
||||||
system = pkgs.stdenv.hostPlatform.system;
|
|
||||||
supportedFeatures = [ "nixos-test" "big-parallel" "kvm" ];
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
sops.secrets = {
|
users.groups.remotebuild = {};
|
||||||
"ssh_keys/root/remotebuild" = {
|
|
||||||
path = "/root/.ssh/remotebuild";
|
nix.settings.trusted-users = ["remotebuild"];
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue