1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-13 20:41:07 +01:00
home-manager/modules/services/podman-linux
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
..
activation.nix podman: added volume, image, and build quadlets (#6137) 2025-03-09 23:02:05 -05:00
builds.nix treewide: remove with lib (#6871) 2025-04-21 11:00:59 -05:00
containers.nix treewide: remove with lib (#6871) 2025-04-21 11:00:59 -05:00
default.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
images.nix treewide: remove with lib (#6871) 2025-04-21 11:00:59 -05:00
install-quadlet.nix treewide: remove with lib (#6871) 2025-04-21 11:00:59 -05:00
networks.nix treewide: remove with lib (#6871) 2025-04-21 11:00:59 -05:00
options.nix treewide: convert package options to use mkPackageOption (#7116) 2025-05-23 00:42:38 -05:00
podman-lib.nix treewide: remove with lib (#6871) 2025-04-21 11:00:59 -05:00
services.nix treewide: remove with lib (#6871) 2025-04-21 11:00:59 -05:00
volumes.nix treewide: remove with lib (#6871) 2025-04-21 11:00:59 -05:00