From a7e66e2246a8bb8490b356ed7d1770a9cfd9647a Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 28 Jul 2023 19:49:48 +0200 Subject: [PATCH] Add bay node --- flake.nix | 1 + m/bay/configuration.nix | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 m/bay/configuration.nix diff --git a/flake.nix b/flake.nix index 5f67afc..6ce0689 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,7 @@ in owl2 = mkConf "owl2"; eudy = mkConf "eudy"; koro = mkConf "koro"; + bay = mkConf "bay"; }; packages.x86_64-linux.hut = self.nixosConfigurations.hut.pkgs; diff --git a/m/bay/configuration.nix b/m/bay/configuration.nix new file mode 100644 index 0000000..04965fd --- /dev/null +++ b/m/bay/configuration.nix @@ -0,0 +1,26 @@ +{ config, pkgs, modulesPath, ... }: + +{ + imports = [ + (modulesPath + "/installer/netboot/netboot-minimal.nix") + ../common/main.nix + ]; + + services.openssh.settings.X11Forwarding = false; + nixpkgs.config.allowBroken = true; + + # Select the this using the ID to avoid mismatches + boot.loader.grub.device = "/dev/disk/by-id/wwn-0x55cd2e414d53562d"; + + networking = { + hostName = "bay"; + interfaces.eno1.ipv4.addresses = [ { + address = "10.0.40.40"; + prefixLength = 24; + } ]; + interfaces.ibp5s0.ipv4.addresses = [ { + address = "10.0.42.40"; + prefixLength = 24; + } ]; + }; +}