added atuin

This commit is contained in:
steven carpenter 2025-06-25 01:20:19 -04:00
parent ce3d8226a7
commit a911a95162
2 changed files with 31 additions and 19 deletions

View file

@ -44,6 +44,7 @@
bitwarden bitwarden
gimp gimp
vlc vlc
atuin
# # Adds the 'hello' command to your environment. It prints a friendly # # Adds the 'hello' command to your environment. It prints a friendly
# # "Hello, world!" when run. # # "Hello, world!" when run.
# pkgs.hello # pkgs.hello

View file

@ -1,26 +1,37 @@
{ pkgs, config, lib, ...}: { pkgs, config, lib, ... }:
{ {
options.speccon18.hm.zsh.enable = lib.mkEnableOption "enables specs zsh config"; options.speccon18.hm.zsh.enable = lib.mkEnableOption "enables specs zsh config";
config = lib.mkIf config.speccon18.hm.zsh.enable { config = lib.mkIf config.speccon18.hm.zsh.enable {
programs.zsh = { programs.zsh = {
enable = lib.mkDefault true; enable = lib.mkDefault true;
dotDir = ".config/zsh"; dotDir = ".config/zsh";
history = { history = {
path = "$ZDOTDIR/.zsh_history"; path = "$ZDOTDIR/.zsh_history";
save = 10000000; save = 10000000;
}; };
autosuggestion.enable = lib.mkDefault true; autosuggestion.enable = lib.mkDefault true;
enableCompletion = lib.mkDefault true; enableCompletion = lib.mkDefault true;
syntaxHighlighting.enable = lib.mkDefault true; syntaxHighlighting.enable = lib.mkDefault true;
shellAliases = { shellAliases = {
ls = "eza -l"; ls = "eza -l";
lsa = "eza -al"; lsa = "eza -al";
grep = "rg"; grep = "rg";
osrb = "sudo nixos-rebuild $1 --flake ~/code/nixos-config/#katana"; osrb = "sudo nixos-rebuild $1 --flake ~/code/nixos-config/#katana";
}; };
localVariables = { localVariables = {
EDITOR="hx"; EDITOR = "nvim";
}; };
# This adds the atuin init line to your Zsh config
initExtra = ''
eval "$(atuin init zsh)"
'';
}; };
}; };
} }