verbena: replace IP literals with infra ouputs
This commit is contained in:
parent
649f58d875
commit
d7243cc7c3
1 changed files with 2 additions and 5 deletions
|
|
@ -1,7 +1,4 @@
|
|||
{ self, lib, ... }:
|
||||
let
|
||||
tf_outputs = builtins.fromJSON (builtins.readFile ../../infra/outputs.json);
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
self.nixosModules.nix-defaults
|
||||
|
|
@ -20,13 +17,13 @@ in
|
|||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
networking.defaultGateway6 = {
|
||||
address = tf_outputs.verbena_gateway6.value;
|
||||
address = self.infra.machines.verbena.gateway6;
|
||||
interface = "ens3";
|
||||
};
|
||||
networking.interfaces."ens3" = {
|
||||
ipv6.addresses = [
|
||||
{
|
||||
address = tf_outputs.verbena_ipv6.value;
|
||||
address = self.infra.machines.verbena.ipv6;
|
||||
prefixLength = 64;
|
||||
}
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue