Files
nixos/henrovnix_ok/home/dev/zsh.nix
T
2026-03-02 18:37:24 +01:00

38 lines
857 B
Nix

{ config, pkgs, lib, flakeRoot, ... }:
{
programs.zsh = {
enable = true;
enableCompletion = true;
autocd = true;
# Recommended: keep zsh config in one dir (relative to $HOME)
dotDir = ".config/zsh";
oh-my-zsh = {
enable = true;
theme = "";
plugins = [
"git"
"sudo"
"extract"
"colored-man-pages"
"command-not-found"
"history"
"docker"
"kubectl"
];
};
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
};
}
{ config, pkgs, lib, ... }:
{
# Ensure the script is executable and available
environment.systemPackages = [ pkgs.bash ];
# Add the activation script
system.activationScripts.recreateConfig = lib.mkAfter "setupNetworking" ''
${config.flakeRoot.outPath}/assets/scripts/recreate_config.sh
'';
}