treewide: use mkPackageOption (#6727)

This commit is contained in:
Austin Horstman
2025-03-29 11:48:55 -05:00
committed by GitHub
parent 1f679ed2a2
commit f1d4acaa10
29 changed files with 39 additions and 195 deletions

View File

@@ -76,12 +76,10 @@ in {
programs.git = {
enable = mkEnableOption "Git";
package = mkOption {
type = types.package;
default = pkgs.git;
defaultText = literalExpression "pkgs.git";
description = ''
Git package to install. Use {var}`pkgs.gitAndTools.gitFull`
package = lib.mkPackageOption pkgs "git" {
example = "pkgs.gitFull";
extraDescription = ''
Use {var}`pkgs.gitFull`
to gain access to {command}`git send-email` for instance.
'';
};