commit caac73ac97140122352c6921ce715184d40567cc
parent f311994ef66d71c891d2dc634ee162fcd1c8607e
Author: Silas Brack <silasbrack@gmail.com>
Date: Sat, 9 May 2026 16:39:00 +0200
feat: use rbw instead of bitwarden-cli
Diffstat:
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/hosts/gaia/configuration.nix b/hosts/gaia/configuration.nix
@@ -180,7 +180,7 @@
];
packages = with pkgs; [
# anki
- bitwarden-cli
+ # bitwarden-cli
# bitwarden-desktop
# blender
btop-rocm
@@ -245,6 +245,7 @@
# pass
# pdftk
# prettierd
+ rbw
# rclone
ripgrep
# rsync
@@ -266,6 +267,8 @@
curl
gnupg
pavucontrol
+ pinentry-emacs
+ pinentry-tty
wget
universal-ctags
unzip
@@ -338,10 +341,17 @@
};
programs.bash = {
- shellAliases = {
- bitwarden-search = '' read -p 'Search in Bitwarden: ' QUERY && RESULTS=$(bw list items --search "$QUERY") && echo "$RESULTS" | jq -r '.[] | [.name, .login.username, .login.password] | @tsv' | fzf --delimiter='\t' --nth='1,2' --with-nth='{1,2}' --accept-nth='Username: {2}' --bind 'enter:execute(echo -n {3} | wl-copy -o)+accept' '';
- loadenv = "set -a; source .env; set +a;";
- };
+ interactiveShellInit = ''
+ bws() {
+ rbw search $1 | fzf | xargs -I _ rbw get -c _
+ }
+
+ loadenv() {
+ set -a;
+ source "''\${1:-.env}";
+ set +a;
+ }
+ '';
};
# Some programs need SUID wrappers, can be configured further or are