diff --git a/nixos/modules/services/networking/globalprotect-vpn.nix b/nixos/modules/services/networking/globalprotect-vpn.nix index 80183f55d320..367a42687e13 100644 --- a/nixos/modules/services/networking/globalprotect-vpn.nix +++ b/nixos/modules/services/networking/globalprotect-vpn.nix @@ -26,7 +26,7 @@ in }; }; - config = { + config = mkIf cfg.enable { services.dbus.packages = [ pkgs.globalprotect-openconnect ]; systemd.services.gpservice = {