nixos/services.ivpn: remove with lib;

This commit is contained in:
Felix Buehler
2024-09-15 10:43:56 +02:00
committed by Jörg Thalheim
parent aa27551b00
commit 050c81941d
+4 -5
View File
@@ -2,11 +2,10 @@
let
cfg = config.services.ivpn;
in
with lib;
{
options.services.ivpn = {
enable = mkOption {
type = types.bool;
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
This option enables iVPN daemon.
@@ -15,7 +14,7 @@ with lib;
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
boot.kernelModules = [ "tun" ];
environment.systemPackages = with pkgs; [ ivpn ivpn-service ];
@@ -47,5 +46,5 @@ with lib;
};
};
meta.maintainers = with maintainers; [ ataraxiasjel ];
meta.maintainers = with lib.maintainers; [ ataraxiasjel ];
}