From d0b82586aff627d502ed51f2c7b9ab055d5328e1 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Tue, 2 Jul 2019 11:34:42 +1000 Subject: [PATCH] Initial commit of Linode network --- Networks/Linode.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Networks/Linode.nix diff --git a/Networks/Linode.nix b/Networks/Linode.nix new file mode 100644 index 0000000..f3b9d1e --- /dev/null +++ b/Networks/Linode.nix @@ -0,0 +1,34 @@ +# NixOps configuration for the Raspberry Pi 3B Rack + +{ + network = { + description = "Linode servers"; + }; + + defaults = { + imports = + [ + ../Deployments/host_common.nix + ]; + + # Ensure the right package architecture is used + nixpkgs.localSystem = { + system = "x86_64-linux"; + config = "x86_64-unknown-linux-gnu"; + allowUnfree = true; + }; + }; + + cuallaidh = + { config, pkgs, lib, ... }: + + { + # 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; + }; +}