feat(infra): Deploy geo02

This commit is contained in:
Tom Hubrecht 2024-02-20 17:57:38 +01:00
parent 5832da0941
commit ade91c7bfd
6 changed files with 91 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{ lib, ... }:
lib.extra.mkConfig {
enabledModules = [
# List of modules to enable
];
enabledServices = [
# List of services to enable
];
extraConfig = {
services.netbird.enable = true;
};
root = ./.;
}

View file

@ -0,0 +1,37 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ lib, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = {
initrd = {
availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"usb_storage"
"sd_mod"
];
};
kernelModules = [ "kvm-intel" ];
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/20d04582-222b-4e32-8744-619e19b0737c";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/352A-2135";
fsType = "vfat";
};
};
swapDevices = [ { device = "/dev/disk/by-uuid/34db637d-5416-4ae1-98ef-3b0c5672159c"; } ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

View file

@ -0,0 +1,5 @@
let
lib = import ../../../lib { };
publicKeys = lib.getNodeKeys "geo02";
in
lib.setDefault { inherit publicKeys; } [ ]

View file

@ -10,6 +10,7 @@
# Jourdan # Jourdan
par02 = [ par02 = [
"geo01" "geo01"
"geo02"
"vault01" "vault01"
]; ];

View file

@ -93,6 +93,28 @@ builtins.mapAttrs mkNet {
]; ];
}; };
geo02 = {
interfaces = {
eno1 = {
ipv4 = [
{
address = "129.199.210.69";
prefixLength = 24;
}
];
gateways = [ "129.199.210.254" ];
};
};
hostId = "45d65237";
dns = [
"129.199.96.11"
"129.199.72.99"
];
};
storage01 = { storage01 = {
interfaces = { interfaces = {
eno1 = { eno1 = {

View file

@ -36,6 +36,15 @@ builtins.mapAttrs mkNode {
}; };
geo01 = { geo01 = {
deployment.tags = [ "geo" ];
stateVersion = "24.05";
nixpkgs = "unstable";
};
geo02 = {
deployment.tags = [ "geo" ];
stateVersion = "24.05"; stateVersion = "24.05";
nixpkgs = "unstable"; nixpkgs = "unstable";
}; };