Working on reshuffling
This commit is contained in:
+7
-6
@@ -1365,11 +1365,13 @@ in
|
||||
lib.mkEnableOption "Enable Zsh terminal with Oh-My-Zsh";
|
||||
|
||||
# Wrap everything in config if enabled
|
||||
config = lib.mkIf (config.enableZsh or false) (let
|
||||
config = { config, ... }: let
|
||||
# Enable flag now safely references the toggle option
|
||||
enableProgram = config.enableZsh or false;
|
||||
|
||||
# Safe reference to defaultUser inside mkIf
|
||||
username = config.defaultUser or "henrov";
|
||||
in
|
||||
{
|
||||
in lib.mkIf enableProgram {
|
||||
myApps = {
|
||||
zsh = {
|
||||
enable = true;
|
||||
@@ -1422,9 +1424,8 @@ in
|
||||
'';
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
||||
#+END_SRC
|
||||
};
|
||||
}#+END_SRC
|
||||
|
||||
** =generated/modules/apps/emacs/emacs.nix=
|
||||
This sets up the emacs terminal
|
||||
|
||||
Reference in New Issue
Block a user