feat: Convert to module options
This commit is contained in:
parent
3792d15fd0
commit
44bb5b5c8c
9 changed files with 420 additions and 315 deletions
modules
29
modules/gitTools.nix
Normal file
29
modules/gitTools.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue