dotfiles/host/montalin/applications/vpn.nix
2020-11-29 13:04:45 +00:00

13 lines
348 B
Nix

{ config, pkgs, lib, ... }:
let
meta = import ../../../meta;
network = meta.network.virtual;
networkName = "mgmt";
in {
networking.wireguard.enable = true;
networking.wireguard.interfaces = {
"wg-${networkName}" =
pkgs.lib.qois.wireguard.makeInterface config.networking.hostName
networkName network.${networkName};
};
}