mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
15 lines
328 B
Nix
15 lines
328 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;
|
|
};
|
|
};
|
|
}
|