1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-12 03:51:07 +01:00
home-manager/modules/services/window-managers
Austin Horstman 7419250703
treewide: convert package options to use mkPackageOption (#7116)
This commit converts `package = mkOption` declarations throughout the
codebase to use the more modern and consistent `lib.mkPackageOption`
function.

Key changes:
- Simple package options: `mkOption { type = types.package; default = pkgs.foo; }`
  becomes `lib.mkPackageOption pkgs "foo" { }`
- Package set options: Uses correct package set as first argument with
  `pkgsText` parameter (e.g., `lib.mkPackageOption pkgs.vimPlugins "plugin" { pkgsText = "pkgs.vimPlugins"; }`)
- Removes redundant descriptions that just restate the package name
- Preserves examples and extra context where meaningful
- Handles submodule plugin options properly with `null` defaults

This modernizes the option declarations and makes them more consistent
with current nixpkgs patterns while maintaining full backward compatibility.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-05-23 00:42:38 -05:00
..
bspwm treewide: convert package options to use mkPackageOption (#7116) 2025-05-23 00:42:38 -05:00
i3-sway treewide: remove with lib (#6871) 2025-04-21 11:00:59 -05:00
labwc labwc: Add module for Labwc (#6807) 2025-04-16 11:15:07 -05:00
awesome.nix treewide: convert package options to use mkPackageOption (#7116) 2025-05-23 00:42:38 -05:00
fluxbox.nix treewide: remove with lib (#6871) 2025-04-21 11:00:59 -05:00
herbstluftwm.nix treewide: convert package options to use mkPackageOption (#7116) 2025-05-23 00:42:38 -05:00
hyprland.nix hyprland: plugins use hyprctl from path (#6801) 2025-04-11 07:59:55 -05:00
river.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
spectrwm.nix treewide: convert package options to use mkPackageOption (#7116) 2025-05-23 00:42:38 -05:00
wayfire.nix treewide: convert package options to use mkPackageOption (#7116) 2025-05-23 00:42:38 -05:00
xmonad.nix treewide: remove with lib (#6871) 2025-04-21 11:00:59 -05:00