nixos/hosts/common/optional/distributed_builds/remote-builder-machine.nix

19 lines
376 B
Nix
Raw Normal View History

2025-01-08 11:59:40 +00:00
{
secrets = {
"ssh_keys/root/remotebuild.pub" = {
path = "/root/.ssh/remotebuild.pub";
};
};
users.users.remotebuild = {
isNormalUser = true;
createHome = false;
group = "remotebuild";
openssh.authorizedKeys.keyFiles = [/root/.ssh/remotebuild.pub];
};
users.groups.remotebuild = {};
nix.settings.trusted-users = ["remotebuild"];
}