config/c3d2: obtain hqPrefix64 from zentralwerk config
This commit is contained in:
parent
41e52bb12b
commit
e8431c117d
|
@ -1,10 +1,11 @@
|
||||||
# This module sets configuration for all NixOS machines defined in this flake
|
# This module sets configuration for all NixOS machines defined in this flake
|
||||||
|
|
||||||
{ config, options, lib, pkgs, ... }:
|
{ zentralwerk, config, options, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# TODO: Is this stable? Is there a better place to specifiy this?
|
hqPrefix64 = builtins.head (
|
||||||
hqPrefix64 = "fd23:42:c3d2:523";
|
builtins.split "/" zentralwerk.lib.config.site.net.c3d2.subnets6.dn42
|
||||||
|
);
|
||||||
|
|
||||||
# Generate a deterministic IPv6 address for a 64 bit prefix
|
# Generate a deterministic IPv6 address for a 64 bit prefix
|
||||||
# and seed string. Prefix must not contain trailing ':'.
|
# and seed string. Prefix must not contain trailing ':'.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user