server7: move yggaddr.nix out to shared lib/ directory

This commit is contained in:
Astro 2020-06-19 18:20:10 +02:00
parent 03a7ab421e
commit 611dabf653
5 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
name:
let yggaddr = import ../yggaddr.nix;
let yggaddr = import ../../../lib/server7-yggaddr.nix;
in {
# These the container defaults from the perspective of the host.

View File

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }:
let yggaddr = import ./yggaddr.nix;
let yggaddr = import ../../lib/server7-yggaddr.nix;
in {
imports = [
# <nixpkgs/nixos/modules/profiles/minimal.nix>

View File

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }:
let yggaddr = import ./yggaddr.nix;
let yggaddr = import ../../lib/server7-yggaddr.nix;
in {
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1;

View File

@ -8,7 +8,7 @@ let
hqPrefix64 = "fd23:42:c3d2:523";
# 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
# and seed string. Prefix must not contain trailing ':'.