mio-ops/networks/pi3B_rack.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2019-12-09 06:17:21 +00:00
# NixOps configuration for the Raspberry Pi 3B Rack
{
2021-11-16 04:57:23 +00:00
imports = [
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
../hardware/raspberry_pi_3_model_B.nix
../profiles/host_common.nix
../profiles/pi_common.nix
../profiles/server_common.nix
2022-07-11 05:52:41 +00:00
../secrets/wireless-pi3B.nix
2021-11-16 04:57:23 +00:00
];
2019-12-09 06:17:21 +00:00
# Ensure the right package architecture is used
nixpkgs.localSystem = {
system = "aarch64-linux";
config = "aarch64-unknown-linux-gnu";
allowUnfree = true;
};
2021-11-16 04:57:23 +00:00
networking.wireless.enable =
2022-07-11 05:52:41 +00:00
true; # Toggles wireless support via wpa_supplicant.
2019-12-09 06:17:21 +00:00
2022-03-07 14:26:15 +00:00
systemd.network.networks.eth0.ipv6SendRAConfig = {
EmitDNS = true;
Managed = true;
OtherInformation = true;
};
2019-12-09 06:17:21 +00:00
documentation = {
2021-11-16 04:57:23 +00:00
nixos.enable = false; # Save some space by disabling the manual
2019-12-09 06:17:21 +00:00
};
users.users.root = {
openssh.authorizedKeys.keys = [
2020-03-06 04:46:15 +00:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDtjE0YstRzlh+Zhlj03th9DYOkMqJ5xHUcderBq151K craige@mcwhirter.io"
2019-12-09 06:17:21 +00:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFq6/C6ZSM8nS091fqw/om9LRszHDmS82ZTL7+GaSBnz craige@pi-tri"
];
};
}