mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat(wireguard): generate psks only if needed; add most of the qr code generator
This commit is contained in:
parent
925d3856e0
commit
d5f2880457
13 changed files with 225 additions and 108 deletions
|
@ -21,5 +21,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
extra.wireguard.vms.address = ["10.0.0.10/32"];
|
||||
extra.wireguard.vms = {
|
||||
via = "ward";
|
||||
addresses = ["10.0.0.10/32"];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -27,12 +27,12 @@
|
|||
enable = true;
|
||||
port = 51822;
|
||||
openFirewall = true;
|
||||
externalPeers = {
|
||||
test1 = ["10.0.0.91/32"];
|
||||
test2 = ["10.0.0.92/32"];
|
||||
test3 = ["10.0.0.93/32"];
|
||||
};
|
||||
};
|
||||
address = ["10.0.0.1/24"];
|
||||
externalPeers = {
|
||||
test1 = ["10.0.0.91/32"];
|
||||
test2 = ["10.0.0.92/32"];
|
||||
test3 = ["10.0.0.93/32"];
|
||||
};
|
||||
addresses = ["10.0.0.1/24"];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -23,10 +23,10 @@
|
|||
enable = true;
|
||||
port = 51822;
|
||||
openFirewall = true;
|
||||
externalPeers = {
|
||||
zack1 = ["10.0.0.90/32"];
|
||||
};
|
||||
};
|
||||
address = ["10.0.0.2/24"];
|
||||
externalPeers = {
|
||||
zack1 = ["10.0.0.90/32"];
|
||||
};
|
||||
addresses = ["10.0.0.2/24"];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue