refactor(wsl): use Windows op.exe via interop instead of native 1password-cli

This commit is contained in:
2026-04-13 15:21:34 +08:00
parent 9e610b89b2
commit 024ea2c676
2 changed files with 37 additions and 30 deletions
+10 -4
View File
@@ -1,5 +1,6 @@
{ {
inputs, inputs,
lib,
username, username,
pkgs, pkgs,
... ...
@@ -20,7 +21,9 @@
}; };
# ── User-level packages ──────────────────────────── # ── User-level packages ────────────────────────────
home.packages = with pkgs; [ home.packages =
with pkgs;
[
# Modern CLI replacements # Modern CLI replacements
dust # du dust # du
duf # df duf # df
@@ -44,9 +47,12 @@
nh # nix helper nh # nix helper
just just
# Secrets management # Secrets management (WSL uses Windows op.exe via interop)
]
++ lib.optionals pkgs.stdenv.isDarwin [
_1password-cli _1password-cli
]
++ (with pkgs; [
# AI coding agent # AI coding agent
opencode opencode
comment-checker comment-checker
@@ -54,7 +60,7 @@
# Misc # Misc
ffmpeg ffmpeg
pandoc pandoc
]; ]);
# XDG directories # XDG directories
xdg.enable = true; xdg.enable = true;
+1
View File
@@ -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