hyprland: added bitwarden rofi support
This commit is contained in:
parent
775902ed40
commit
2a03f28fc5
33
home/modules/hyprland/bitwarden.nix
Normal file
33
home/modules/hyprland/bitwarden.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
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 = {
|
||||
secrets."bitwarden/config.json" = {
|
||||
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"
|
||||
];
|
||||
};
|
||||
}
|
|
@ -10,6 +10,7 @@ in
|
|||
{
|
||||
imports = [
|
||||
# ./dunst.nix
|
||||
./bitwarden.nix
|
||||
./hypridle.nix
|
||||
./hyprland.nix
|
||||
./hyprlock.nix
|
||||
|
|
22
secrets/bitwarden.yaml
Normal file
22
secrets/bitwarden.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
bitwarden:
|
||||
config.json: ENC[AES256_GCM,data:oob3Dybuex844TY57FmTL+JVgPS/QQeEVMVeiOYrGaXLpH0OE76rJMiOPw==,iv:aH6Xz+3bPRkK7Il8/g516du4IJ7k71hZMTlF33YARBQ=,tag:LOf9yZDkASMwAq3UvWjv2g==,type:str]
|
||||
sops:
|
||||
kms: []
|
||||
gcp_kms: []
|
||||
azure_kv: []
|
||||
hc_vault: []
|
||||
age:
|
||||
- recipient: age1kruum2varzua7w5n6n52vhwyek2arc685rhcwt0u7k2jf5mecsjslkl9ll
|
||||
enc: |
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBDUXV1MlI2eGp5dm9NVkxX
|
||||
cjc4azd3RUxZTzA4UjE2YVlCZFVFaWd6ajNvCk56RzdTVEYvMlkwUVkyM1Vmc3p5
|
||||
alZWbDdpLys2eHRzR2tmTEJ6c3hBcVkKLS0tIGlFdS9xZEdDSERVZ3YyN29GZi82
|
||||
NkhTR0pOd1JxNXhjb3hsWlFyREl5RU0KHFFdDs1BDo/CUeIjV7QGxIfL6nwfuzYE
|
||||
+zRqZDbocFnNQ5m6X17O11+xGhRASL7ORweIeVlzCpCyJ27IsaoSIA==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
lastmodified: "2024-10-28T02:13:49Z"
|
||||
mac: ENC[AES256_GCM,data:52uwqIj5gXnXlFRuzd9mqvziAGkso+HWwqlD4EcOhXs11dHpgaWsusq27ItwyHwZaN8UUN8frfC9/U4JppOgjiUXpteO78DX/Hc8QZP9Q7Fw5rvd0jpQIWDhXC0LmqIIg0v3lvv1jgWkMHrxBsB5IfJiOlitwX9hG9wn+8H7Qq0=,iv:FvZmiqJmD5bJAM0PV6/uolsMn4r2UC964MUXL17K3o8=,tag:Dy9kVUhtbLrC5ykJsr1Mcg==,type:str]
|
||||
pgp: []
|
||||
unencrypted_suffix: _unencrypted
|
||||
version: 3.8.1
|
Loading…
Reference in a new issue