This commit is contained in:
parent
39fd67c416
commit
aa4e19f25b
5 changed files with 9 additions and 26 deletions
|
@ -9,9 +9,7 @@
|
|||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot = {
|
||||
initrd = {
|
||||
|
@ -42,9 +40,7 @@
|
|||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/6518c729-a0cb-41b4-acc8-ec219d0afba6"; }
|
||||
];
|
||||
swapDevices = [ { device = "/dev/disk/by-uuid/6518c729-a0cb-41b4-acc8-ec219d0afba6"; } ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
|
|
|
@ -14,9 +14,7 @@ let
|
|||
{
|
||||
Endpoint = "129.199.146.230:1194";
|
||||
PersistentKeepalive = 25;
|
||||
AllowedIPs = [
|
||||
"fdaa::${prefix}:0/64"
|
||||
];
|
||||
AllowedIPs = [ "fdaa::${prefix}:0/64" ];
|
||||
PublicKey = peer.key;
|
||||
};
|
||||
in
|
||||
|
@ -28,9 +26,7 @@ in
|
|||
networks = {
|
||||
"50-wg-mgmt" = {
|
||||
name = "wg-mgmt";
|
||||
address = [
|
||||
"fdaa::${lib.toHexString (dgn-keys.getVpnKey "wg-mgmt" name).id}/64"
|
||||
];
|
||||
address = [ "fdaa::${lib.toHexString (dgn-keys.getVpnKey "wg-mgmt" name).id}/64" ];
|
||||
routes = [
|
||||
{
|
||||
Destination = "fdaa::/64";
|
||||
|
|
|
@ -12,9 +12,7 @@ let
|
|||
peer = dgn-keys.getVpnKey "wg-mgmt" peerName;
|
||||
in
|
||||
{
|
||||
AllowedIPs = [
|
||||
"fdaa::${prefix}:${lib.toHexString peer.id}/32"
|
||||
];
|
||||
AllowedIPs = [ "fdaa::${prefix}:${lib.toHexString peer.id}/32" ];
|
||||
PublicKey = peer.key;
|
||||
};
|
||||
in
|
||||
|
@ -26,9 +24,7 @@ in
|
|||
networks = {
|
||||
"50-wg-mgmt" = {
|
||||
name = "wg-mgmt";
|
||||
address = [
|
||||
"fdaa::${lib.toHexString (dgn-keys.getVpnKey "wg-mgmt" name).id}/64"
|
||||
];
|
||||
address = [ "fdaa::${lib.toHexString (dgn-keys.getVpnKey "wg-mgmt" name).id}/64" ];
|
||||
routes = [
|
||||
{
|
||||
Destination = "fdaa::/64";
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
{
|
||||
}
|
||||
{ }
|
||||
|
|
|
@ -89,18 +89,14 @@ in
|
|||
name = "20-ens${builtins.toString (20 + i)}";
|
||||
value = {
|
||||
name = "ens${builtins.toString (20 + i)}";
|
||||
address = [
|
||||
"fdfd:1794:0:${builtins.toString vlan}::${builtins.toString cfg.id}/64"
|
||||
];
|
||||
address = [ "fdfd:1794:0:${builtins.toString vlan}::${builtins.toString cfg.id}/64" ];
|
||||
};
|
||||
}) cfg.connections
|
||||
)
|
||||
// {
|
||||
"20-babel-local" = {
|
||||
name = "babel-local";
|
||||
address = [
|
||||
"fdfd:1794::${builtins.toString cfg.id}/64"
|
||||
];
|
||||
address = [ "fdfd:1794::${builtins.toString cfg.id}/64" ];
|
||||
};
|
||||
};
|
||||
netdevs = {
|
||||
|
|
Loading…
Reference in a new issue