Regenerated
This commit is contained in:
+21
-2
@@ -1197,12 +1197,16 @@ This sets up the zsh in the terminal
|
||||
#+BEGIN_SRC nix :tangle generated/modules/terminals/zsh.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
isHM = config.home-manager.useHomeManager or false;
|
||||
in
|
||||
{
|
||||
###########################
|
||||
# NIXOS SYSTEM CONFIG
|
||||
###########################
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autocd = true;
|
||||
dotDir = "${config.xdg.configHome}/zsh";
|
||||
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
@@ -1218,7 +1222,22 @@ This sets up the zsh in the terminal
|
||||
"kubectl"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
###########################
|
||||
# HOME-MANAGER CONFIG (only if HM is active)
|
||||
###########################
|
||||
home.file."zsh.nix".text = lib.mkIf isHM ''
|
||||
# Only applied in home-manager context
|
||||
# Set Zsh dotDir, autosuggestions, syntax highlighting, autocd
|
||||
export ZDOTDIR="${config.xdg.configHome}/zsh"
|
||||
|
||||
# Optional: source your plugins/config here
|
||||
'';
|
||||
|
||||
home.programs.zsh = lib.mkIf isHM {
|
||||
autocd = true;
|
||||
dotDir = "${config.xdg.configHome}/zsh";
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user