zsh.nix/modules/gitTools.nix
jiriks74 44bb5b5c8c
All checks were successful
Perform checks / formatting (push) Successful in 9m59s
Perform checks / nix_flake_check (push) Successful in 10m2s
Perform checks / nix_flake_check (pull_request) Successful in 10m8s
Perform checks / formatting (pull_request) Successful in 10m11s
feat: Convert to module options
2025-04-19 23:58:05 +02:00

29 lines
614 B
Nix

{
pkgs,
config,
lib,
...
}: let
cfg = config.jiriks74.zsh;
in {
meta.maintainers = with lib.maintainers; [jiriks74];
options.jiriks74.zsh.gitTools = lib.mkEnableOption "Install usefull git tools";
config = lib.mkIf cfg.gitTools {
# assertions = [
# {
# # Condition that must be true
# assertion = cfg.enable;
# # Error message if the assertion fails
# message = ''
# Home-Manager module jiriks74.zsh.gitTools is enabled but jiriks74.zsh is not!
# '';
# }
# ];
home.packages = with pkgs; [
gh
tea
];
};
}