Add muop to wireguard

This commit is contained in:
muon 2024-12-29 09:46:52 +00:00
parent b739a26edf
commit 15053e74e0
4 changed files with 42 additions and 38 deletions

View file

@ -8,11 +8,12 @@ in with lib; {
options.mods = {
i2p.enable = mkEnableOption "enables i2p network";
tailscale.enable = mkEnableOption "enables tailscale";
wireguard.enable = mkEnableOption "enables wireguard client";
wireguard.id = mkOption {
type = with types; nullOr ints.u8;
default = null;
};
openvpn.enable = mkEnableOption "enables openvpn config";
openvpn.config = let
username = "${config.mods.user.name}";
@ -79,5 +80,8 @@ in with lib; {
};
};
# gateway =
# "${pkgs.networkmanager}/bin/nmcli dev show ${interface} | ${pkgs.gnugrep}/bin/fgrep IP4.GATEWAY | ${pkgs.awk}/bin/awk {print $2}";
};
}