diff --git a/nixos/modules/services/networking/networkmanager.nix b/nixos/modules/services/networking/networkmanager.nix index cb0b8f8ee6227..95921e003c2df 100644 --- a/nixos/modules/services/networking/networkmanager.nix +++ b/nixos/modules/services/networking/networkmanager.nix @@ -215,6 +215,14 @@ in ''; }; + enableDefaultPlugins = mkOption { + type = types.bool; + default = true; + description = '' + Enable a set of recommended plugins. + ''; + }; + dhcp = mkOption { type = types.enum [ "dhcpcd" "internal" ]; default = "internal"; @@ -594,7 +602,7 @@ in useDHCP = false; }) - { + (mkIf cfg.enableDefaultPlugins { networkmanager.plugins = with pkgs; [ networkmanager-fortisslvpn networkmanager-iodine @@ -604,7 +612,7 @@ in networkmanager-vpnc networkmanager-sstp ]; - } + }) (mkIf cfg.enableStrongSwan { networkmanager.plugins = [ pkgs.networkmanager_strongswan ];