mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
19 lines
317 B
Nix
19 lines
317 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; {
|
|
options.elss.openvpn.enable = mkEnableOption "Setup TUD openvpn";
|
|
config = let
|
|
cfg = config.elss.openvpn;
|
|
in
|
|
mkIf cfg.enable {
|
|
services.openvpn.servers.TUD = {
|
|
config = "config config/TUD.ovpn";
|
|
autoStart = false;
|
|
};
|
|
};
|
|
}
|