Working on reshuffling

This commit is contained in:
2026-03-19 07:22:11 +00:00
parent 82907d13b6
commit 6e7ce5181c
2 changed files with 104 additions and 94 deletions
+8 -3
View File
@@ -1317,10 +1317,14 @@ in
options.mySystem.terminals.zsh.enable = options.mySystem.terminals.zsh.enable =
lib.mkEnableOption "Enable Zsh terminal with Oh-My-Zsh"; lib.mkEnableOption "Enable Zsh terminal with Oh-My-Zsh";
# Only evaluate Home Manager config if enabled # Flake-style nixosModule
config = lib.mkIf (lib.getOption "mySystem.terminals.zsh.enable" or false) { flake.nixosModules.zsh = { config, ... }: let
enableZsh = config.mySystem.terminals.zsh.enable or false;
in
{
config = lib.mkIf enableZsh {
# Home Manager scope # Home Manager scope for the user
home-manager.users.${username} = { home-manager.users.${username} = {
programs.zsh.enable = true; programs.zsh.enable = true;
@@ -1370,6 +1374,7 @@ in
''; '';
}; };
}; };
};
} }
#+END_SRC #+END_SRC
+8 -3
View File
@@ -8,10 +8,14 @@ in
options.mySystem.terminals.zsh.enable = options.mySystem.terminals.zsh.enable =
lib.mkEnableOption "Enable Zsh terminal with Oh-My-Zsh"; lib.mkEnableOption "Enable Zsh terminal with Oh-My-Zsh";
# Only evaluate Home Manager config if enabled # Flake-style nixosModule
config = lib.mkIf (lib.getOption "mySystem.terminals.zsh.enable" or false) { flake.nixosModules.zsh = { config, ... }: let
enableZsh = config.mySystem.terminals.zsh.enable or false;
in
{
config = lib.mkIf enableZsh {
# Home Manager scope # Home Manager scope for the user
home-manager.users.${username} = { home-manager.users.${username} = {
programs.zsh.enable = true; programs.zsh.enable = true;
@@ -61,4 +65,5 @@ in
''; '';
}; };
}; };
};
} }