From e1c9c2be4e9884f51c1d62055ca1c3d9b6a744e7 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Wed, 24 May 2023 12:29:45 +0200 Subject: [PATCH] Bitwarden: rofi integration --- hm_modules/bitwarden.nix | 8 ++++++++ hm_modules/rofi.nix | 12 ++++++++---- odin/hm.nix | 3 ++- thor/hm.nix | 3 ++- 4 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 hm_modules/bitwarden.nix diff --git a/hm_modules/bitwarden.nix b/hm_modules/bitwarden.nix new file mode 100644 index 0000000..3a60318 --- /dev/null +++ b/hm_modules/bitwarden.nix @@ -0,0 +1,8 @@ +{ pkgs, config, lib, ... }: { + home.packages = + [ pkgs.bitwarden ] ++ + lib.optionals config.programs.rofi.enable (builtins.attrValues { + inherit (pkgs.unstable_pkgs) rbw rofi-rbw; + inherit (pkgs.pinentry) gnome3; + }); +} diff --git a/hm_modules/rofi.nix b/hm_modules/rofi.nix index e15a482..4ccd786 100644 --- a/hm_modules/rofi.nix +++ b/hm_modules/rofi.nix @@ -1,15 +1,19 @@ { pkgs, ... }: { home.packages = builtins.attrValues { - inherit (pkgs) rofimoji rofi-bluetooth rofi-power-menu rofi-vpn; + inherit (pkgs) + rofimoji + rofi-bluetooth + rofi-power-menu + rofi-vpn + xdotool + ; }; programs.rofi = { enable = true; location = "center"; - font = "${pkgs.rice.font.monospace.name} ${ - toString pkgs.rice.font.monospace.size - }"; + font = "${pkgs.rice.font.monospace.name} ${toString pkgs.rice.font.monospace.size}"; plugins = [ pkgs.rofi-calc ]; extraConfig = { modi = "drun,run,ssh,window,calc"; }; terminal = "kitty"; diff --git a/odin/hm.nix b/odin/hm.nix index c419b93..701abdc 100644 --- a/odin/hm.nix +++ b/odin/hm.nix @@ -19,7 +19,7 @@ # signal-desktop # slack # wineFull - arandr authy bitwarden cava discord dmenu droidcam easyeffects evince + arandr authy cava discord dmenu droidcam easyeffects evince gallery-dl google-chrome gucharmap handbrake httpie inkscape keyboard-switch krita meld openvpn p7zip pavucontrol pentablet-driver procps pulseaudio retroarchFull shotwell spotify tdesktop thunderbird transmission-gtk @@ -68,6 +68,7 @@ ../hm_modules/alacritty.nix ../hm_modules/autorandr.nix ../hm_modules/biblio.nix + ../hm_modules/bitwarden.nix ../hm_modules/blender.nix ../hm_modules/bspwm.nix ../hm_modules/cava.nix diff --git a/thor/hm.nix b/thor/hm.nix index 8a51d8c..9af0add 100644 --- a/thor/hm.nix +++ b/thor/hm.nix @@ -19,7 +19,7 @@ # signal-desktop # slack # wineFull - arandr authy bitwarden discord dmenu docker-compose docker-machine + arandr authy discord dmenu docker-compose docker-machine droidcam easyeffects evince filelight gallery-dl google-chrome gucharmap handbrake httpie inkscape krita meld openvpn p7zip pavucontrol pcsx2 pentablet-driver procps pulseaudio retroarchFull shotwell @@ -58,6 +58,7 @@ ../hm_modules/alacritty.nix ../hm_modules/autorandr.nix ../hm_modules/biblio.nix + ../hm_modules/bitwarden.nix ../hm_modules/blender_nvidia.nix ../hm_modules/bspwm.nix ../hm_modules/cava.nix