1
1
Fork 0
nixos/options/custom/programs/rbw.nix
Myned 3985ebd1d5
rbw: disable keybind help
Signed-off-by: Myned <dev@bjork.tech>
2025-02-10 15:10:57 -06:00

48 lines
1.2 KiB
Nix

{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.custom.programs.rbw;
in {
options.custom.programs.rbw = {
enable = mkOption {default = false;};
};
config = {
# https://github.com/fdw/rofi-rbw
environment.systemPackages = [pkgs.rofi-rbw];
home-manager.sharedModules = mkIf cfg.enable [
{
# https://github.com/doy/rbw
#!! Register with API secrets before using
#?? rbw register
#?? rbw login
programs.rbw = {
enable = true;
# https://github.com/doy/rbw?tab=readme-ov-file#configuration
settings = {
base_url = "https://vault.${config.custom.domain}";
email = "${config.custom.username}@${config.custom.domain}";
pinentry = pkgs.pinentry-gnome3;
};
};
# TODO: Enable input emulation when merged (uinput.enable?)
# https://github.com/NixOS/nixpkgs/pull/303745
# https://github.com/fdw/rofi-rbw?tab=readme-ov-file#configuration
xdg.configFile = {
"rofi-rbw.rc".text = ''
action=copy
no-help=true
selector=${config.custom.menu}
'';
};
}
];
};
}