diff --git a/infra/common/nixos/networking.nix b/infra/common/nixos/networking.nix index 3d50b9d5..7b2b2fee 100644 --- a/infra/common/nixos/networking.nix +++ b/infra/common/nixos/networking.nix @@ -12,8 +12,8 @@ in }; networking = { - hostName = config.procolixVm.name; - domain = config.procolixVm.domain; + hostName = config.fediversityVm.name; + domain = config.fediversityVm.domain; ## REVIEW: Do we actually need that, considering that we have static IPs? useDHCP = mkDefault true; @@ -23,14 +23,14 @@ in ipv4 = { addresses = [ { - inherit (config.procolixVm.ipv4) address prefixLength; + inherit (config.fediversityVm.ipv4) address prefixLength; } ]; }; ipv6 = { addresses = [ { - inherit (config.procolixVm.ipv6) address prefixLength; + inherit (config.fediversityVm.ipv6) address prefixLength; } ]; }; @@ -38,11 +38,11 @@ in }; defaultGateway = { - address = config.procolixVm.ipv4.gateway; + address = config.fediversityVm.ipv4.gateway; interface = "eth0"; }; defaultGateway6 = { - address = config.procolixVm.ipv6.gateway; + address = config.fediversityVm.ipv6.gateway; interface = "eth0"; }; diff --git a/infra/common/options.nix b/infra/common/options.nix index a3246fd5..39c2e1d2 100644 --- a/infra/common/options.nix +++ b/infra/common/options.nix @@ -5,7 +5,7 @@ let in { - options.procolixVm = { + options.fediversityVm = { name = mkOption { description = '' The name of the machine. Most of the time, this will look like `vm02XXX` diff --git a/infra/common/resource.nix b/infra/common/resource.nix index 7f42d8e9..2b7bc616 100644 --- a/infra/common/resource.nix +++ b/infra/common/resource.nix @@ -13,14 +13,14 @@ let secretsPrefix = ../../secrets; secrets = import (secretsPrefix + "/secrets.nix"); keys = import ../../keys; - hostPublicKey = keys.systems.${config.procolixVm.name}; + hostPublicKey = keys.systems.${config.fediversityVm.name}; in { imports = [ ./options.nix ]; ssh = { - host = config.procolixVm.ipv4.address; + host = config.fediversityVm.ipv4.address; hostPublicKey = hostPublicKey; }; @@ -39,7 +39,7 @@ in ## Inject the shared options from the resource's `config` into the NixOS ## configuration. - procolixVm = config.procolixVm; + fediversityVm = config.fediversityVm; ## Read all the secrets, filter the ones that are supposed to be readable ## with this host's public key, and add them correctly to the configuration diff --git a/infra/fedi300/default.nix b/infra/fedi300/default.nix index 4f70ca98..deb76c3a 100644 --- a/infra/fedi300/default.nix +++ b/infra/fedi300/default.nix @@ -1,5 +1,5 @@ { - procolixVm = { + fediversityVm = { domain = "fediversity.eu"; ipv4 = { diff --git a/infra/flake-part.nix b/infra/flake-part.nix index a7c110f0..22c8afb8 100644 --- a/infra/flake-part.nix +++ b/infra/flake-part.nix @@ -23,7 +23,7 @@ let ./common/resource.nix (./. + "/${vmName}") ]; - procolixVm.name = vmName; + fediversityVm.name = vmName; }; makeDeployments = mapAttrs ( diff --git a/infra/vm02116/default.nix b/infra/vm02116/default.nix index 387a5bad..496b9854 100644 --- a/infra/vm02116/default.nix +++ b/infra/vm02116/default.nix @@ -1,5 +1,5 @@ { - procolixVm = { + fediversityVm = { ipv4.address = "185.206.232.34"; ipv6.address = "2a00:51c0:12:1201::20"; }; diff --git a/infra/vm02179/default.nix b/infra/vm02179/default.nix index 3ff8de5b..9298189b 100644 --- a/infra/vm02179/default.nix +++ b/infra/vm02179/default.nix @@ -1,5 +1,5 @@ { - procolixVm = { + fediversityVm = { ipv4.address = "185.206.232.179"; ipv6.address = "2a00:51c0:12:1201::179"; }; diff --git a/infra/vm02186/default.nix b/infra/vm02186/default.nix index 7e6c4148..60e43aa6 100644 --- a/infra/vm02186/default.nix +++ b/infra/vm02186/default.nix @@ -1,5 +1,5 @@ { - procolixVm = { + fediversityVm = { ipv4.address = "185.206.232.186"; ipv6.address = "2a00:51c0:12:1201::186"; }; diff --git a/infra/vm02187/default.nix b/infra/vm02187/default.nix index 18e9a29f..7310e9c1 100644 --- a/infra/vm02187/default.nix +++ b/infra/vm02187/default.nix @@ -1,5 +1,5 @@ { - procolixVm = { + fediversityVm = { ipv4.address = "185.206.232.187"; ipv6.address = "2a00:51c0:12:1201::187"; };