xin/dbuild/build-server.nix

22 lines
510 B
Nix
Raw Normal View History

2023-07-11 09:12:50 -06:00
{
config,
lib,
...
}:
2022-08-25 12:21:35 -06:00
with lib; {
options = {
buildServer = {
enable = mkEnableOption "Server will be used as part of the build infra";
};
};
config = mkIf config.buildServer.enable {
2023-07-11 09:12:50 -06:00
boot.binfmt.emulatedSystems = ["aarch64-linux"];
2022-08-25 12:21:35 -06:00
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICEtoU6ObMP7wmglT7rXMg0HEnh7cGBo6COL7BpmRC/o"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGyOQdqfm7mG+5rOGIqPHSaZQdG/4L03dVJnuE1lO1fo"
];
};
}