From 58c1cc1f7cf47a77bf0aebd00a9c5fe173690ea8 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 24 Aug 2023 12:30:46 +0200 Subject: [PATCH] Add lake2 bootstrap config --- flake.nix | 1 + m/lake2/configuration.nix | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 m/lake2/configuration.nix diff --git a/flake.nix b/flake.nix index 6ce0689..7bd69c0 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,7 @@ in eudy = mkConf "eudy"; koro = mkConf "koro"; bay = mkConf "bay"; + lake2 = mkConf "lake2"; }; packages.x86_64-linux.hut = self.nixosConfigurations.hut.pkgs; diff --git a/m/lake2/configuration.nix b/m/lake2/configuration.nix new file mode 100644 index 0000000..37bd22a --- /dev/null +++ b/m/lake2/configuration.nix @@ -0,0 +1,32 @@ +{ config, pkgs, lib, modulesPath, ... }: + +{ + imports = [ + ../common/main.nix + (modulesPath + "/installer/netboot/netboot-minimal.nix") + ]; + + # For now we install NixOS in the first nvme disk (nvme0n1), as this node only + # has one SSD already used for SUSE. + boot.loader.grub.device = "/dev/disk/by-id/nvme-SNVMe_INTEL_SSDPE2MD02CVFT5281004L2P0KGN"; + + environment.systemPackages = with pkgs; [ + ceph + ]; + + services.slurm = { + client.enable = lib.mkForce false; + }; + + networking = { + hostName = "lake2"; + interfaces.eno1.ipv4.addresses = [ { + address = "10.0.40.42"; + prefixLength = 24; + } ]; + interfaces.ibp5s0.ipv4.addresses = [ { + address = "10.0.42.42"; + prefixLength = 24; + } ]; + }; +}