mio-ops/clusters/pi2B_rack.nix

33 lines
865 B
Nix
Raw Normal View History

2020-06-25 22:51:29 +00:00
# NixOps configuration for the Raspberry Pi 2B Rack
{
imports =
[
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
../hardware/raspberry_pi_2_model_B.nix
../roles/host_common.nix
../roles/pi_common.nix
../roles/server_common.nix
];
# Ensure the right package architecture is used
2020-06-26 00:20:46 +00:00
nixpkgs.crossSystem = {
2020-06-25 22:51:29 +00:00
system = "armv7l-linux";
};
networking.wireless.enable = false; # Toggles wireless support via wpa_supplicant.
documentation = {
nixos.enable = false; # Save some space by disabling the manual
};
users.users.root = {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDtjE0YstRzlh+Zhlj03th9DYOkMqJ5xHUcderBq151K craige@mcwhirter.io"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFq6/C6ZSM8nS091fqw/om9LRszHDmS82ZTL7+GaSBnz craige@paidh-tri"
];
};
}