nixos-config/modules/programs/distributed-build/builder.nix

18 lines
1.1 KiB
Nix

{ pkgs, ... }:
{
boot.binfmt.emulatedSystems = [ "i686-linux" ]; # For remote building
environment.systemPackages = with pkgs; [ openssh ];
nix.trustedUsers = ["builder"];
# TODO: Specify a firewall rule to only allow this from my other NixOS machines
users.extraUsers."builder" = {
isSystemUser = true;
useDefaultShell = true;
openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDN8tV/VbCwd5QVoJX+0n3hOCCRhIINZEhyMSrhOishQpDR2H/gtnIuTTYKtNbkxfICFXwxDKmAJv8ThijCBmRZMQHl/Zo4D/ArqbZYSSoEmXpEWMCYnyh6QJ/bE8MLSWJXszla2NmC87/YUJzmGbuk+vaVSwtFhNoS0aZv1KVkcspgX6E488tEM/rXItrSkGE2x0lnzJCDYu2s5r5Ij1b/qorSijT0xLDSWMLEGIPyFSx4L7xtzvWsyh0mGuPnwqSWLc8tVOO6nO6slAs/mDYwZ1JXBV+hCvAm8EVwE0M16WR8ZRg+3XRNieJhkLSOjoFmzB/A1S17h3UPC+jPYWtM6UwMO6679HkoZNzGaAFemVHEpLjZpG8wIrZ2GL+s5g3WJVa7wCI77j8zlfGif2RevmZx4r8f+t36j9EsCPY9Z90Fg/l81Dv6xl/+7R/RUzXN0zXTsk11Dvrz1mvwGKHmOfEZAdiSP4pAWuT8ZgxbsYjCAGTo+7t5OSWBxwPeypSSkKLYMaChkudX3xOTVVlJ3zuRmN5FCdcA3B7hpKt+au7U7Ou0xUtWdc4ICnyXowOCGjZmLfdePR1Mx+/r6aQq7lh0BhT1aVlaHStJseMvDOkz3FRSke94BexHXgSRJ0rI0J6A29JiW+3kuAsdPJcgMHLqT9l0/TKk0x0YHyJd+Q== alexander@mikulinux
"
];
};
}