hm modules: gate behind enable options, always import

This commit is contained in:
müde 2026-05-03 15:19:06 +02:00
parent 6ee82131cd
commit c8cfa37bb9
8 changed files with 67 additions and 36 deletions

View file

@ -1,13 +1,18 @@
{ lib, config, ... }:
{
programs = {
command-not-found.enable = true;
dircolors.enable = true;
options.my.zsh.enable = lib.mkEnableOption "zsh with basic settings";
zsh = {
enable = true;
syntaxHighlighting.enable = true;
autosuggestion.enable = true;
enableVteIntegration = true;
config = lib.mkIf config.my.zsh.enable {
programs = {
command-not-found.enable = true;
dircolors.enable = true;
zsh = {
enable = true;
syntaxHighlighting.enable = true;
autosuggestion.enable = true;
enableVteIntegration = true;
};
};
};
}