started break out of zsh

This commit is contained in:
John Lancaster
2026-03-11 00:40:01 -05:00
parent 9bd2bb1a0f
commit 7f8a8e0f49
5 changed files with 51 additions and 53 deletions

View File

@@ -1,39 +1,53 @@
{ inputs, ... }:
let
username = "john";
in
{
flake.modules.homeManager.zsh = { pkgs, config, ... }:
{
programs.zsh = {
enable = true;
package = pkgs.zsh;
enableCompletion = true;
autosuggestion.enable = true;
# syntaxHighlighting.enable = true;
initContent = "HOST=$(hostname -s)";
dotDir = "${config.xdg.configHome}/zsh";
history = {
append = true;
ignoreAllDups = true;
ignorePatterns = [
"history"
"ls"
"eza"
"clear"
];
save = 1000;
size = 1000;
share = true;
};
oh-my-zsh = {
flake.modules = {
nixos.zsh = { pkgs, ... }: {
users.users."${username}".shell = pkgs.zsh;
programs.zsh.enable = true;
home-manager.sharedModules = [
inputs.self.modules.homeManager.zsh
];
};
homeManager.zsh = { pkgs, config, ... }: {
programs.zsh = {
enable = true;
# theme = "risto";
theme = "agnoster";
plugins = [
"sudo"
"dotenv"
"git"
"ssh"
"ssh-agent"
];
package = pkgs.zsh;
enableCompletion = true;
autosuggestion.enable = true;
# syntaxHighlighting.enable = true;
initContent = "HOST=$(hostname -s)";
dotDir = "${config.xdg.configHome}/zsh";
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"
];
};
};
};
};
}