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..3ba2413 --- /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; + #  domains = "buildbot.forkos.org"; + #  }; + + i18n.defaultLocale = "en_US.UTF-8"; + + system.stateVersion = "24.05"; + deployment.targetHost = "buildbot.infra.forkos.org"; +}