about summary refs log tree commit diff
path: root/nixos/modules/services/networking/multipath.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/services/networking/multipath.nix
parentbabc0d5e96871971a5d9cf4c4a2a68edba413dc4 (diff)
parent0a37316d6cfea44280f4470b6867a711a24606bd (diff)
Merge pull request #261702 from h7x4/replace-mkoption-with-mkpackageoption
treewide: use `mkPackageOption`
Diffstat (limited to 'nixos/modules/services/networking/multipath.nix')
-rw-r--r--nixos/modules/services/networking/multipath.nix7
1 files changed, 1 insertions, 6 deletions
diff --git a/nixos/modules/services/networking/multipath.nix b/nixos/modules/services/networking/multipath.nix
index 9099cbe0cd32a..42ffc3c88426c 100644
--- a/nixos/modules/services/networking/multipath.nix
+++ b/nixos/modules/services/networking/multipath.nix
@@ -24,12 +24,7 @@ in {
 
     enable = mkEnableOption (lib.mdDoc "the device mapper multipath (DM-MP) daemon");
 
-    package = mkOption {
-      type = package;
-      description = lib.mdDoc "multipath-tools package to use";
-      default = pkgs.multipath-tools;
-      defaultText = lib.literalExpression "pkgs.multipath-tools";
-    };
+    package = mkPackageOption pkgs "multipath-tools" { };
 
     devices = mkOption {
       default = [ ];