diff --git a/home/default.nix b/home/default.nix index 7c3acb9..5d632d0 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,5 +1,6 @@ { inputs, + lib, username, pkgs, ... @@ -20,41 +21,46 @@ }; # ── User-level packages ──────────────────────────── - home.packages = with pkgs; [ - # Modern CLI replacements - dust # du - duf # df - procs # ps - sd # sed - xh # curl/httpie - jq # JSON - yq # YAML - wget + home.packages = + with pkgs; + [ + # Modern CLI replacements + dust # du + duf # df + procs # ps + sd # sed + xh # curl/httpie + jq # JSON + yq # YAML + wget - # System info - fastfetch - tealdeer # tldr + # System info + fastfetch + tealdeer # tldr - # File management - gomi + # File management + gomi - # Nix tools - nix-output-monitor # nom - nvd # nix version diff - nh # nix helper - just + # Nix tools + nix-output-monitor # nom + nvd # nix version diff + nh # nix helper + just - # Secrets management - _1password-cli + # Secrets management (WSL uses Windows op.exe via interop) + ] + ++ lib.optionals pkgs.stdenv.isDarwin [ + _1password-cli + ] + ++ (with pkgs; [ + # AI coding agent + opencode + comment-checker - # AI coding agent - opencode - comment-checker - - # Misc - ffmpeg - pandoc - ]; + # Misc + ffmpeg + pandoc + ]); # XDG directories xdg.enable = true; diff --git a/home/shell/fish.nix b/home/shell/fish.nix index a1813bf..4d56387 100644 --- a/home/shell/fish.nix +++ b/home/shell/fish.nix @@ -52,6 +52,7 @@ if set -q WSL_DISTRO_NAME alias pbcopy clip.exe alias pbpaste "powershell.exe -noprofile -c Get-Clipboard" + alias op op.exe end # User-local overrides