treewide: use mkPackageOption
This commit replaces a lot of usages of `mkOption` with the package type, to be `mkPackageOption`, in order to reduce the amount of code.
This commit is contained in:
@@ -47,14 +47,7 @@ in
|
||||
'';
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
default = pkgs.docker;
|
||||
defaultText = literalExpression "pkgs.docker";
|
||||
type = types.package;
|
||||
description = lib.mdDoc ''
|
||||
Docker package to be used in the module.
|
||||
'';
|
||||
};
|
||||
package = mkPackageOption pkgs "docker" { };
|
||||
};
|
||||
|
||||
###### implementation
|
||||
|
||||
Reference in New Issue
Block a user