refactor(wsl): use Windows op.exe via interop instead of native 1password-cli
This commit is contained in:
+36
-30
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
|
lib,
|
||||||
username,
|
username,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
@@ -20,41 +21,46 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# ── User-level packages ────────────────────────────
|
# ── User-level packages ────────────────────────────
|
||||||
home.packages = with pkgs; [
|
home.packages =
|
||||||
# Modern CLI replacements
|
with pkgs;
|
||||||
dust # du
|
[
|
||||||
duf # df
|
# Modern CLI replacements
|
||||||
procs # ps
|
dust # du
|
||||||
sd # sed
|
duf # df
|
||||||
xh # curl/httpie
|
procs # ps
|
||||||
jq # JSON
|
sd # sed
|
||||||
yq # YAML
|
xh # curl/httpie
|
||||||
wget
|
jq # JSON
|
||||||
|
yq # YAML
|
||||||
|
wget
|
||||||
|
|
||||||
# System info
|
# System info
|
||||||
fastfetch
|
fastfetch
|
||||||
tealdeer # tldr
|
tealdeer # tldr
|
||||||
|
|
||||||
# File management
|
# File management
|
||||||
gomi
|
gomi
|
||||||
|
|
||||||
# Nix tools
|
# Nix tools
|
||||||
nix-output-monitor # nom
|
nix-output-monitor # nom
|
||||||
nvd # nix version diff
|
nvd # nix version diff
|
||||||
nh # nix helper
|
nh # nix helper
|
||||||
just
|
just
|
||||||
|
|
||||||
# Secrets management
|
# Secrets management (WSL uses Windows op.exe via interop)
|
||||||
_1password-cli
|
]
|
||||||
|
++ lib.optionals pkgs.stdenv.isDarwin [
|
||||||
|
_1password-cli
|
||||||
|
]
|
||||||
|
++ (with pkgs; [
|
||||||
|
# AI coding agent
|
||||||
|
opencode
|
||||||
|
comment-checker
|
||||||
|
|
||||||
# AI coding agent
|
# Misc
|
||||||
opencode
|
ffmpeg
|
||||||
comment-checker
|
pandoc
|
||||||
|
]);
|
||||||
# Misc
|
|
||||||
ffmpeg
|
|
||||||
pandoc
|
|
||||||
];
|
|
||||||
|
|
||||||
# XDG directories
|
# XDG directories
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
if set -q WSL_DISTRO_NAME
|
if set -q WSL_DISTRO_NAME
|
||||||
alias pbcopy clip.exe
|
alias pbcopy clip.exe
|
||||||
alias pbpaste "powershell.exe -noprofile -c Get-Clipboard"
|
alias pbpaste "powershell.exe -noprofile -c Get-Clipboard"
|
||||||
|
alias op op.exe
|
||||||
end
|
end
|
||||||
|
|
||||||
# User-local overrides
|
# User-local overrides
|
||||||
|
|||||||
Reference in New Issue
Block a user