From 22a10e158fd2ab42351d0f61539d3c7d368047d0 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Thu, 25 Jul 2024 20:46:20 +0200 Subject: [PATCH] hosts/public01: init Signed-off-by: Raito Bezarius --- flake.nix | 1 + hosts/public01/default.nix | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100755 hosts/public01/default.nix diff --git a/flake.nix b/flake.nix index af1c00d..76c7e3f 100644 --- a/flake.nix +++ b/flake.nix @@ -111,6 +111,7 @@ git.imports = commonModules ++ [ ./hosts/git ]; wob-vpn-gw.imports = commonModules ++ [ ./hosts/wob-vpn-gw ]; buildbot.imports = commonModules ++ [ ./hosts/buildbot ]; + public01.imports = commonModules ++ [ ./hosts/public01 ]; } // builders; hydraJobs = builtins.mapAttrs (n: v: v.config.system.build.toplevel) self.nixosConfigurations; diff --git a/hosts/public01/default.nix b/hosts/public01/default.nix new file mode 100755 index 0000000..ffbce98 --- /dev/null +++ b/hosts/public01/default.nix @@ -0,0 +1,32 @@ +{ + config, + lib, + pkgs, + ... +}: +{ + networking.hostName = "public01"; + # 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:A4:F7:D3"; + wan = { + address = "2001:bc8:38ee:100:1000::60/64"; + mac = "BC:24:11:DB:B8:10"; + }; + }; + }; + + i18n.defaultLocale = "en_US.UTF-8"; + + system.stateVersion = "24.05"; + deployment.targetHost = "public01.infra.forkos.org"; +}