diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-11-30 02:49:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 02:49:30 +0100 |
commit | feeae486deb50aab190d1dd46626a6c5f9f3f698 (patch) | |
tree | 3d818b400b9a6d5654629023fa2f2380e2f3aa08 /nixos/modules/virtualisation/openvswitch.nix | |
parent | babc0d5e96871971a5d9cf4c4a2a68edba413dc4 (diff) | |
parent | 0a37316d6cfea44280f4470b6867a711a24606bd (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.nix | 9 |
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 |