feat(infra): Deploy geo01

This commit is contained in:
Tom Hubrecht 2024-02-20 17:47:50 +01:00
parent e7f4d76dc1
commit c991c47b75
6 changed files with 90 additions and 1 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/87e58ba7-b70e-4f3f-96b8-b430d63feb47";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/12CE-A600";
fsType = "vfat";
};
};
swapDevices = [ { device = "/dev/disk/by-uuid/dd12c644-ead3-4367-9198-2f7740908633"; } ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

View file

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

View file

@ -8,7 +8,10 @@
]; ];
# Jourdan # Jourdan
par02 = [ "vault01" ]; par02 = [
"geo01"
"vault01"
];
# VMs du SPI/NPS/Whatever # VMs du SPI/NPS/Whatever
dmi01 = [ dmi01 = [

View file

@ -71,6 +71,28 @@ builtins.mapAttrs mkNet {
hostId = "8df60941"; hostId = "8df60941";
}; };
geo01 = {
interfaces = {
eno1 = {
ipv4 = [
{
address = "129.199.210.194";
prefixLength = 24;
}
];
gateways = [ "129.199.210.254" ];
};
};
hostId = "b88fee0c";
dns = [
"129.199.96.11"
"129.199.72.99"
];
};
storage01 = { storage01 = {
interfaces = { interfaces = {
eno1 = { eno1 = {

View file

@ -35,6 +35,11 @@ builtins.mapAttrs mkNode {
stateVersion = "23.05"; stateVersion = "23.05";
}; };
geo01 = {
stateVersion = "24.05";
nixpkgs = "unstable";
};
storage01 = { storage01 = {
stateVersion = "23.11"; stateVersion = "23.11";
}; };