diff options
| author | Franck Cuny <franck@fcuny.net> | 2022-02-21 13:33:51 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2022-02-21 13:33:51 -0800 |
| commit | cd9c8ec5fdbe4874c7be95c80f8ab86999b30390 (patch) | |
| tree | 513331627090ae863c064cf2662ba77906e6f54a /lib/default.nix | |
| parent | secrets: initial config and a first secret (diff) | |
| download | infra-cd9c8ec5fdbe4874c7be95c80f8ab86999b30390.tar.gz | |
wireguard: module and peers configurations
Add a new module to automatically configure the peers for wireguard. The
module needs a configuration file (in `configs/wireguard.toml`) which
lists all the peers, their IP and and their public keys. The secret keys
is encrypted as a secret with agenix.
There's some initial documentation on how to use this setup.
Diffstat (limited to 'lib/default.nix')
| -rw-r--r-- | lib/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix index c2866c9..fe43eb1 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -14,6 +14,7 @@ inputs.agenix.nixosModules.age ../hosts/common ../hosts/${hostname} + ./private-wireguard.nix { networking.hostName = hostname; nixpkgs = { |
