From 76276a8da31c5083bd98e24ae4e4e3728e7fd59f Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 5 Oct 2024 18:05:48 +0200 Subject: [PATCH] feat: add build01.aarch64.lix.systems This is the first Lix machine we are enrolling in our infrastructure (!). It's using all the previous commits to make it cozy with our current infra style. Signed-off-by: Raito Bezarius --- common/ssh-keys.nix | 4 ++++ flake.nix | 3 +++ hosts/build01-aarch64-lix/default.nix | 27 +++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 hosts/build01-aarch64-lix/default.nix diff --git a/common/ssh-keys.nix b/common/ssh-keys.nix index 571305e..632a92d 100644 --- a/common/ssh-keys.nix +++ b/common/ssh-keys.nix @@ -1,5 +1,6 @@ { machines = { + # Floral bagel-box = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsO4bNqY04uG13Pg3ubHfRDssTphDLzZ4YUniE5/p+M"; meta01 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM5t9gYorOWgpCFDJgb24pyCKIabGpeI2H/UfdvXODcT"; public01 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPBy8G8rfLA6E9i+t5kjVafxU1c2NXATXKxoXTH4Kgtm"; @@ -20,6 +21,9 @@ builder-9 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOhws9zGgocVY36dMtOL+CXadpvRMffxoWMkfEcTBJm7"; builder-10 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE7sgIuTSqZiZhp8TvObSbIEhcHHsL5hcmYA22uzwxth"; wob-vpn-gw = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINVytPPW8XnXf/rD5TFzsw//CZc2lBjQLmDzlVGPZsjh"; + + # Lix + build01-aarch64-lix = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICC69NZD/zhIB/wUb5odg46bss5g8hH2fDl22bk4qeSW"; }; users = { diff --git a/flake.nix b/flake.nix index cefcac6..c052759 100644 --- a/flake.nix +++ b/flake.nix @@ -172,6 +172,7 @@ aarch64-systems = systems: lib.genAttrs systems (system: systemBits.aarch64-linux.pkgs); in aarch64-systems [ + "build01-aarch64-lix" ]; meta.specialArgs.inputs = inputs; @@ -184,6 +185,8 @@ buildbot.imports = floralInfraModules ++ [ ./hosts/buildbot ]; public01.imports = floralInfraModules ++ [ ./hosts/public01 ]; build-coord.imports = floralInfraModules ++ [ ./hosts/build-coord ]; + + build01-aarch64-lix.imports = lixInfraModules ++ [ ./hosts/build01-aarch64-lix ]; } // builders; hydraJobs = builtins.mapAttrs (n: v: v.config.system.build.netbootDir or v.config.system.build.toplevel) self.nixosConfigurations; diff --git a/hosts/build01-aarch64-lix/default.nix b/hosts/build01-aarch64-lix/default.nix new file mode 100644 index 0000000..becc1a3 --- /dev/null +++ b/hosts/build01-aarch64-lix/default.nix @@ -0,0 +1,27 @@ +{ ... }: { + networking.hostName = "build01"; + networking.domain = "aarch64.lix.systems"; + + # Those free sweet VMs. + bagel.hardware.oracle-vm = { + enable = true; + system = "aarch64-linux"; + }; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/a333323c-99f0-4258-8f68-496858d56f71"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/3E74-C937"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + bagel.builders.extra-build-capacity.provider.enable = true; + i18n.defaultLocale = "en_US.UTF-8"; + system.stateVersion = "24.05"; + deployment.targetHost = "build01.aarch64.lix.systems"; +}