Files
jsl-home/homeManagerModules/shell.nix
2025-07-06 23:08:07 -05:00

47 lines
1.1 KiB
Nix

{ config, pkgs, lib, inputs, ... }:
{
home.packages = with pkgs; [
eza
(writeShellScriptBin "test-pkgs" ''
echo "Hello from ~/.config/home-manager/home.nix!"
'')
];
programs.zsh = lib.mkIf config.enableShell {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
# syntaxHighlighting.enable = true;
history = {
append = true;
ignoreAllDups = true;
ignorePatterns = [
"history"
"ls"
"eza"
"clear"
];
save = 1000;
size = 1000;
share = true;
};
oh-my-zsh = {
enable = true;
# theme = "risto";
theme = "agnoster";
plugins = [
"sudo"
"dotenv"
"git"
"ssh"
"ssh-agent"
] ++ lib.optional config._1password "1password";
};
shellAliases.ls = "${pkgs.eza}/bin/eza -lgos type --no-time";
initContent = lib.mkIf config._1password ''
if [ -f "${config.home.homeDirectory}/.config/op/plugins.sh" ]; then
source ${config.home.homeDirectory}/.config/op/plugins.sh
fi
'';
};
}