NixOS/home/modules/hyprland/bitwarden.nix

34 lines
619 B
Nix
Raw Permalink Normal View History

2024-10-28 09:16:15 +07:00
{
config,
lib,
pkgs,
...
}:
let
cfg = config.profile.hyprland;
inherit (lib) mkIf;
in
{
config = mkIf cfg.enable {
home.packages = with pkgs; [
rofi-wayland
rbw
rofi-rbw-wayland
ydotool
pinentry-tty
];
sops = {
2024-10-30 11:35:52 +07:00
secrets."bitwarden/rbw/config.json" = {
2024-10-28 09:16:15 +07:00
sopsFile = ../../../secrets/bitwarden.yaml;
path = "${config.home.homeDirectory}/.config/rbw/config.json";
};
};
wayland.windowManager.hyprland.settings.bind = [
# Needs to login first to bitwarden via `rbw login` command
"$mod, Z, exec, rofi-rbw"
];
};
}