From ade1aaff5b8be7b6e3ff78863bb3f12715b8947b Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Thu, 27 Jun 2019 11:43:23 +1000 Subject: [PATCH] Initial commit --- Networks/raspberry_pi_rack.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Networks/raspberry_pi_rack.nix diff --git a/Networks/raspberry_pi_rack.nix b/Networks/raspberry_pi_rack.nix new file mode 100644 index 0000000..1627fd8 --- /dev/null +++ b/Networks/raspberry_pi_rack.nix @@ -0,0 +1,31 @@ +# NixOps configuration for the Raspberry Pi 3B Rack + +{ + network = { + description = "Raspberry Pi 3B Rack"; + }; + + defaults = { + imports = + [ + ../Hardware/raspberry_pi_3_model_B.nix + ../Deployments/pi3B_rack.nix + ../Deployments/host_common.nix + ]; + }; + + pi-tri = + { config, pkgs, lib, ... }: + + { + #networking.hostName = "pi-tri"; # Define your hostname. + + # 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.03"; # Did you read the comment? + system.autoUpgrade.enable = true; + system.autoUpgrade.channel = https://nixos.org/channels/nixos-19.03; + }; +}