Jafner.net/nix/home-manager/app/bitwarden/bitwarden.nix
2024-10-16 21:37:21 -07:00

36 lines
949 B
Nix

{ pkgs, pkgs-unstable, ... }:
{
home.packages = with pkgs; [
rofi-rbw-wayland
rbw
pinentry-rofi
pinentry-all
];
home.file = {
rbw-config = {
target = ".config/rbw/config.json";
text = ''
{
"email": "jafner425@gmail.com",
"sso_id": null,
"base_url": "https://bitwarden.jafner.tools",
"identity_url": null,
"ui_url": null,
"notifications_url": null,
"lock_timeout": 3600,
"sync_interval": 3600,
"pinentry": "pinentry-curses",
"client_cert_path": null
}
'';
};
};
}
# function { inputs }: { outputs }
# fzf-bw { bwJson }: { none } # copies user, pass to clipboard
# fzf-bw-getItem { itemUuid, bwJson }: { itemJson }
# fzf-bw-selector { bwJson }: { itemUuid }
# fzf-bw-getUser { itemJson }: { itemUsername }
# fzf-bw-getPass { itemJson }: { itemPassword }