From 62eb9fd7ddac0cb55ac377bb3de2b550d2c97a5a Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 2 Aug 2024 21:05:53 -0400 Subject: [PATCH] dustin: add rbw and rofi-rbw --- homes/dustin/default.nix | 39 ++++++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/homes/dustin/default.nix b/homes/dustin/default.nix index 62bb1432..c8bb1d55 100644 --- a/homes/dustin/default.nix +++ b/homes/dustin/default.nix @@ -3,7 +3,11 @@ self: { lib, pkgs, ... -}: { +}: let + unstable = import self.inputs.nixpkgs-unstable { + system = pkgs.system; + }; +in { imports = [self.homeManagerModules.default]; home = { @@ -21,11 +25,36 @@ self: { ]; }; - programs.home-manager.enable = true; + programs = { + home-manager.enable = true; - wayland.windowManager.sway.config.input."type:keyboard" = lib.mkForce { - xkb_layout = "us"; - xkb_variant = "altgr-intl"; + rbw = { + enable = true; + package = unstable.rbw; + + settings = { + email = "dustinmraffauf@gmail.com"; + lock_timeout = 14400; + pinentry = pkgs.pinentry-gnome3; + }; + }; + }; + + wayland.windowManager = { + hyprland.settings.bind = [ + "SUPER,P,exec,${lib.getExe pkgs.rofi-rbw-wayland}" + ]; + + sway.config = { + input."type:keyboard" = lib.mkForce { + xkb_layout = "us"; + xkb_variant = "altgr-intl"; + }; + + keybindings = { + "${config.wayland.windowManager.sway.config.modifier}+P" = "exec ${lib.getExe pkgs.rofi-rbw-wayland}"; + }; + }; }; xdg.mimeApps = {