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

17 lines
993 B
Nix
Raw Normal View History

2021-07-29 20:21:51 +00:00
{ pkgs, ... }:
{
2021-09-02 18:55:38 +00:00
boot.binfmt.emulatedSystems = [ "i686-linux" "aarch64-linux" ]; # For remote building
2021-07-29 20:21:51 +00:00
environment.systemPackages = with pkgs; [ openssh ];
2021-09-02 18:55:38 +00:00
nix.trustedUsers = [ "builder" ];
2021-07-29 20:21:51 +00:00
# TODO: Specify a firewall rule to only allow this from my other NixOS machines
users.extraUsers."builder" = {
isSystemUser = true;
useDefaultShell = true;
openssh.authorizedKeys.keys = [
2021-08-02 19:56:08 +00:00
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCYfZ6FF3I7Bc8h1VmRxNDHOL08OffetE4DaOZKgw3ZFYSYub80eGN14jevx4Ie525MptFIYbvO5FUcpXx3d6Dh7AE7WUsGzbvPPCmaRy/wiwn2mpCKWqSC3EVxabPakTfVD2+OWDVUW/LWDb2bK40NegBykxf9Vo7112lBFXD8xcq1p8cyhCaq/vsnWUr/8T5z029ySp5UnzuesqrXpfVwnBVzj7xaZizs3Y0bUxdP6vWQSqrTl9KXUveRt3AL+TG3ny4KESvFzGo4YZQCQ2WgCGWgf8SLeHm8UDp8h7dPWkzmT/y7ZSWKGp2R0VDklsjJQqi91l+NXBmKs/uLTVMVqGTYeO04z2mzwzI7aBLrN7A2n3/SmFHz6gW64BYkWNh6iRaDAnu0CgDM4rWyBD/vrgjlojJv6tmSCA3hNGm2ndRfsjiv49+K9NEAxkiijnf0277KHgPHstzlhFq6hYT9qEbaPtqfbKUeWMhj3FpqTHfNVznOXR6+bsGW7h28uLc= alexander@ayame"
2021-07-29 20:21:51 +00:00
];
};
}