mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-17 14:31:09 +01:00
treewide: use mkPackageOption (#6727)
This commit is contained in:
parent
1f679ed2a2
commit
f1d4acaa10
29 changed files with 39 additions and 195 deletions
|
|
@ -21,14 +21,9 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.jdk;
|
||||
defaultText = "pkgs.jdk";
|
||||
description = ''
|
||||
Java package to install. Typical values are
|
||||
`pkgs.jdk` or `pkgs.jre`.
|
||||
'';
|
||||
package = lib.mkPackageOption pkgs "java" {
|
||||
default = "jdk";
|
||||
example = "pkgs.jre";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue