about summary refs log tree commit diff
path: root/nixos/modules/virtualisation/openvswitch.nix
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-11-30 02:49:30 +0100
committerGitHub <noreply@github.com>2023-11-30 02:49:30 +0100
commitfeeae486deb50aab190d1dd46626a6c5f9f3f698 (patch)
tree3d818b400b9a6d5654629023fa2f2380e2f3aa08 /nixos/modules/virtualisation/openvswitch.nix
parentbabc0d5e96871971a5d9cf4c4a2a68edba413dc4 (diff)
parent0a37316d6cfea44280f4470b6867a711a24606bd (diff)
Merge pull request #261702 from h7x4/replace-mkoption-with-mkpackageoption
treewide: use `mkPackageOption`
Diffstat (limited to 'nixos/modules/virtualisation/openvswitch.nix')
-rw-r--r--nixos/modules/virtualisation/openvswitch.nix9
1 files changed, 1 insertions, 8 deletions
diff --git a/nixos/modules/virtualisation/openvswitch.nix b/nixos/modules/virtualisation/openvswitch.nix
index 32646f60f8e04..a968c732f8f7e 100644
--- a/nixos/modules/virtualisation/openvswitch.nix
+++ b/nixos/modules/virtualisation/openvswitch.nix
@@ -28,14 +28,7 @@ in {
         '';
     };
 
-    package = mkOption {
-      type = types.package;
-      default = pkgs.openvswitch;
-      defaultText = literalExpression "pkgs.openvswitch";
-      description = lib.mdDoc ''
-        Open vSwitch package to use.
-      '';
-    };
+    package = mkPackageOption pkgs "openvswitch" { };
   };
 
   config = mkIf cfg.enable (let