mio-ops/Networks/raspberry_pi_rack.nix

68 lines
2 KiB
Nix
Raw Normal View History

2019-06-27 01:43:23 +00:00
# NixOps configuration for the Raspberry Pi 3B Rack
{
network = {
description = "Raspberry Pi 3B Rack";
};
defaults = {
imports =
[
2019-10-15 15:30:15 +00:00
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
2019-06-27 01:43:23 +00:00
../Hardware/raspberry_pi_3_model_B.nix
../Deployments/pi3B_rack.nix
../Deployments/host_common.nix
];
2019-07-02 01:27:24 +00:00
# Ensure the right package architecture is used
nixpkgs.localSystem = {
system = "aarch64-linux";
config = "aarch64-unknown-linux-gnu";
allowUnfree = true;
};
2019-10-15 15:30:15 +00:00
2019-10-16 21:40:14 +00:00
networking.wireless.enable = false; # Toggles wireless support via wpa_supplicant.
2019-10-16 04:16:47 +00:00
documentation = {
2019-10-16 04:18:39 +00:00
nixos.enable = false; # Save some space by disabling the manual
2019-10-16 02:00:00 +00:00
};
2019-10-15 15:30:15 +00:00
users.users.root = {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFq6/C6ZSM8nS091fqw/om9LRszHDmS82ZTL7+GaSBnz craige@pi-tri"
];
};
2019-10-16 21:40:14 +00:00
environment.systemPackages = with pkgs; [
lsusb # Tools for working with USB devices, such as lsusb
];
2019-06-27 01:43:23 +00:00
};
pi-tri =
{ config, pkgs, lib, ... }:
2019-10-15 23:34:35 +00:00
{
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "19.09"; # Did you read the comment?
system.autoUpgrade.enable = true;
system.autoUpgrade.channel = https://nixos.org/channels/nixos-19.09;
};
pi-ceithir =
{ config, pkgs, lib, ... }:
2019-06-27 01:43:23 +00:00
{
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
2019-10-15 14:34:13 +00:00
system.stateVersion = "19.09"; # Did you read the comment?
2019-06-27 01:43:23 +00:00
system.autoUpgrade.enable = true;
2019-10-15 14:34:13 +00:00
system.autoUpgrade.channel = https://nixos.org/channels/nixos-19.09;
2019-06-27 01:43:23 +00:00
};
}