From a911a95162e563b7b61e81b69d1caa8dcbbda96e Mon Sep 17 00:00:00 2001 From: steven carpenter Date: Wed, 25 Jun 2025 01:20:19 -0400 Subject: [PATCH] added atuin --- modules/home-manager/home.nix | 1 + modules/home-manager/zsh.nix | 49 +++++++++++++++++++++-------------- 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/modules/home-manager/home.nix b/modules/home-manager/home.nix index a75c369..62408ce 100644 --- a/modules/home-manager/home.nix +++ b/modules/home-manager/home.nix @@ -44,6 +44,7 @@ bitwarden gimp vlc + atuin # # Adds the 'hello' command to your environment. It prints a friendly # # "Hello, world!" when run. # pkgs.hello diff --git a/modules/home-manager/zsh.nix b/modules/home-manager/zsh.nix index ab47217..b460940 100644 --- a/modules/home-manager/zsh.nix +++ b/modules/home-manager/zsh.nix @@ -1,26 +1,37 @@ -{ pkgs, config, lib, ...}: +{ pkgs, config, lib, ... }: { options.speccon18.hm.zsh.enable = lib.mkEnableOption "enables specs zsh config"; + config = lib.mkIf config.speccon18.hm.zsh.enable { programs.zsh = { - enable = lib.mkDefault true; - dotDir = ".config/zsh"; - history = { - path = "$ZDOTDIR/.zsh_history"; - save = 10000000; - }; - autosuggestion.enable = lib.mkDefault true; - enableCompletion = lib.mkDefault true; - syntaxHighlighting.enable = lib.mkDefault true; - shellAliases = { - ls = "eza -l"; - lsa = "eza -al"; - grep = "rg"; - osrb = "sudo nixos-rebuild $1 --flake ~/code/nixos-config/#katana"; - }; - localVariables = { - EDITOR="hx"; - }; + enable = lib.mkDefault true; + dotDir = ".config/zsh"; + + history = { + path = "$ZDOTDIR/.zsh_history"; + save = 10000000; + }; + + autosuggestion.enable = lib.mkDefault true; + enableCompletion = lib.mkDefault true; + syntaxHighlighting.enable = lib.mkDefault true; + + shellAliases = { + ls = "eza -l"; + lsa = "eza -al"; + grep = "rg"; + osrb = "sudo nixos-rebuild $1 --flake ~/code/nixos-config/#katana"; + }; + + localVariables = { + EDITOR = "nvim"; + }; + + # This adds the atuin init line to your Zsh config + initExtra = '' + eval "$(atuin init zsh)" + ''; }; }; } +