From 4c1cd25b157da624d99f05dd84d655b4f6cfc801 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Wed, 17 Jul 2024 14:47:52 +0200 Subject: [PATCH] hosts/buildbot: init Signed-off-by: Raito Bezarius --- common/ssh-keys.nix | 1 + flake.nix | 1 + hosts/buildbot/default.nix | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100755 hosts/buildbot/default.nix diff --git a/common/ssh-keys.nix b/common/ssh-keys.nix index eb1afb8..7d06233 100644 --- a/common/ssh-keys.nix +++ b/common/ssh-keys.nix @@ -4,6 +4,7 @@ meta01 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM5t9gYorOWgpCFDJgb24pyCKIabGpeI2H/UfdvXODcT"; gerrit01 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA+eSZu+u9sCynrMlsmFzQHLIELQAuVg0Cs1pBvwb4+A"; fodwatch = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFRyTNfvKl5FcSyzGzw+h+bNFNOxdhvI67WdUZ2iIJ1L"; + buildbot = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJgIu6ouagYqBeMLfmn1CbaDJMuZcPH9bnUhkht8GfuB"; git = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEQJcpkCUOx8+5oukMX6lxrYcIX8FyHu8Mc/3+ieKMUn"; builder-0 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBHSNcDGctvlG6BHcJuYIzW9WsBJsts2vpwSketsbXoL"; builder-1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIQOGUjERK7Mx8UPM/rbOdMqVyn1sbWqYOG6CbOzH2wm"; diff --git a/flake.nix b/flake.nix index c8eef8f..a5a662a 100644 --- a/flake.nix +++ b/flake.nix @@ -106,6 +106,7 @@ fodwatch.imports = commonModules ++ [ ./hosts/fodwatch ]; git.imports = commonModules ++ [ ./hosts/git ]; wob-vpn-gw.imports = commonModules ++ [ ./hosts/wob-vpn-gw ]; + buildbot.imports = commonModules ++ [ ./hosts/buildbot ]; } // builders; hydraJobs = builtins.mapAttrs (n: v: v.config.system.build.toplevel) self.nixosConfigurations; diff --git a/hosts/buildbot/default.nix b/hosts/buildbot/default.nix new file mode 100755 index 0000000..a06689e --- /dev/null +++ b/hosts/buildbot/default.nix @@ -0,0 +1,37 @@ +{ + config, + lib, + pkgs, + ... +}: +{ + networking.hostName = "buildbot"; + # TODO: make it the default + networking.domain = "infra.forkos.org"; + + time.timeZone = "Europe/Paris"; + + bagel.sysadmin.enable = true; + # Buildbot is proxied. + bagel.raito.v6-proxy-awareness.enable = true; + bagel.hardware.raito-vm = { + enable = true; + networking = { + nat-lan-mac = "BC:24:11:E7:42:8B"; + wan = { + address = "2001:bc8:38ee:100:1000::50/64"; + mac = "BC:24:11:C9:BA:6C"; + }; + }; + }; + + bagel.services.buildbot = { + enable = true; + domain = "buildbot.forkos.org"; + }; + + i18n.defaultLocale = "en_US.UTF-8"; + + system.stateVersion = "24.05"; + deployment.targetHost = "buildbot.infra.forkos.org"; +}