server7: move yggaddr.nix out to shared lib/ directory
This commit is contained in:
parent
03a7ab421e
commit
611dabf653
|
@ -1,6 +1,6 @@
|
||||||
name:
|
name:
|
||||||
|
|
||||||
let yggaddr = import ../yggaddr.nix;
|
let yggaddr = import ../../../lib/server7-yggaddr.nix;
|
||||||
in {
|
in {
|
||||||
# These the container defaults from the perspective of the host.
|
# These the container defaults from the perspective of the host.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let yggaddr = import ./yggaddr.nix;
|
let yggaddr = import ../../lib/server7-yggaddr.nix;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
# <nixpkgs/nixos/modules/profiles/minimal.nix>
|
# <nixpkgs/nixos/modules/profiles/minimal.nix>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let yggaddr = import ./yggaddr.nix;
|
let yggaddr = import ../../lib/server7-yggaddr.nix;
|
||||||
in {
|
in {
|
||||||
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1;
|
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ let
|
||||||
hqPrefix64 = "fd23:42:c3d2:523";
|
hqPrefix64 = "fd23:42:c3d2:523";
|
||||||
# TODO: Is this stable? Is there a better place to specifiy this?
|
# TODO: Is this stable? Is there a better place to specifiy this?
|
||||||
|
|
||||||
server7Ygg = import ../hosts/server7/yggaddr.nix;
|
server7Ygg = import ./server7-yggaddr.nix;
|
||||||
|
|
||||||
# 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