Files
nixos/Droidnix/generated/modules/traveldroid/apps/zsh.nix
T
2026-03-26 18:36:52 +00:00

41 lines
786 B
Nix

{ config, pkgs, lib, flakeRoot, ... }:
let
username = config.defaultUser or "henrov";
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
in
{
programs.zsh = {
enable = true;
enableCompletion = true;
# Set Zsh dotfiles location
dotDir = "${config.xdg.configHome}/zsh";
ohMyZsh = {
enable = true;
theme = "";
plugins = [
"git"
"sudo"
"extract"
"colored-man-pages"
"command-not-found"
"history"
"docker"
"kubectl"
];
};
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
# Load your generated .zshrc if it exists
extraConfig = ''
if [ -f "${generatedZsh}" ]; then
source "${generatedZsh}"
fi
'';
};
}