Working on reshuffling
This commit is contained in:
+8
-3
@@ -1317,10 +1317,14 @@ in
|
||||
options.mySystem.terminals.zsh.enable =
|
||||
lib.mkEnableOption "Enable Zsh terminal with Oh-My-Zsh";
|
||||
|
||||
# Only evaluate Home Manager config if enabled
|
||||
config = lib.mkIf (lib.getOption "mySystem.terminals.zsh.enable" or false) {
|
||||
# Flake-style nixosModule
|
||||
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} = {
|
||||
|
||||
programs.zsh.enable = true;
|
||||
@@ -1370,6 +1374,7 @@ in
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
|
||||
@@ -8,10 +8,14 @@ in
|
||||
options.mySystem.terminals.zsh.enable =
|
||||
lib.mkEnableOption "Enable Zsh terminal with Oh-My-Zsh";
|
||||
|
||||
# Only evaluate Home Manager config if enabled
|
||||
config = lib.mkIf (lib.getOption "mySystem.terminals.zsh.enable" or false) {
|
||||
# Flake-style nixosModule
|
||||
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} = {
|
||||
|
||||
programs.zsh.enable = true;
|
||||
@@ -61,4 +65,5 @@ in
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user