diff --git a/machines/geo02/_configuration.nix b/machines/geo02/_configuration.nix new file mode 100644 index 0000000..a402b3f --- /dev/null +++ b/machines/geo02/_configuration.nix @@ -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 = ./.; +} diff --git a/machines/geo02/_hardware-configuration.nix b/machines/geo02/_hardware-configuration.nix new file mode 100644 index 0000000..0e1aadd --- /dev/null +++ b/machines/geo02/_hardware-configuration.nix @@ -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"; +} diff --git a/machines/geo02/secrets/secrets.nix b/machines/geo02/secrets/secrets.nix new file mode 100644 index 0000000..bac045d --- /dev/null +++ b/machines/geo02/secrets/secrets.nix @@ -0,0 +1,5 @@ +let + lib = import ../../../lib { }; + publicKeys = lib.getNodeKeys "geo02"; +in +lib.setDefault { inherit publicKeys; } [ ] diff --git a/meta/infrastructure.nix b/meta/infrastructure.nix index 0e1b6b6..3f1944f 100644 --- a/meta/infrastructure.nix +++ b/meta/infrastructure.nix @@ -10,6 +10,7 @@ # Jourdan par02 = [ "geo01" + "geo02" "vault01" ]; diff --git a/meta/network.nix b/meta/network.nix index 409dbbd..fd9a88d 100644 --- a/meta/network.nix +++ b/meta/network.nix @@ -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 = { interfaces = { eno1 = { diff --git a/meta/nodes.nix b/meta/nodes.nix index a8b17c6..16ac0ad 100644 --- a/meta/nodes.nix +++ b/meta/nodes.nix @@ -36,6 +36,15 @@ builtins.mapAttrs mkNode { }; geo01 = { + deployment.tags = [ "geo" ]; + + stateVersion = "24.05"; + nixpkgs = "unstable"; + }; + + geo02 = { + deployment.tags = [ "geo" ]; + stateVersion = "24.05"; nixpkgs = "unstable"; };