nixos-config/modules/home-manager/_private/state/packages.nix

27 lines
768 B
Nix
Raw Normal View History

{ lib, ... }:
{
2025-01-29 04:48:19 +00:00
options.state = let
packagesSubmodule = { lib, ... }: {
options = {
packages = lib.mkOption {
type = with lib.types; attrsOf package;
default = { };
description = ''
Source of truth containing a set of packages. Useful for options
where there are no specific options for a package or as a unified
source of truth for different module options requiring a package.
'';
example = lib.literalExpression ''
{
diff = pkgs.vimdiff;
pager = pkgs.bat;
editor = pkgs.neovim;
}
'';
};
};
2025-01-29 04:48:19 +00:00
};
in lib.mkOption { type = lib.types.submodule packagesSubmodule; };
}