add bitwarden app to hyprland
This commit is contained in:
parent
49c93c82e0
commit
fff1263c85
2 changed files with 47 additions and 0 deletions
46
modules/home/hyprland/applications/bitwarden/default.nix
Normal file
46
modules/home/hyprland/applications/bitwarden/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.wayland.windowManager.hyprland;
|
||||||
|
app = cfg.applications.password-manager.default;
|
||||||
|
|
||||||
|
inherit (lib) mkDefault mkIf;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ ../../../rofi-rbw ];
|
||||||
|
|
||||||
|
config = mkIf (cfg.enable && app == "rofi-rbw") {
|
||||||
|
programs.rbw = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
# email = "you@example.tld"; # You have to set this in your config
|
||||||
|
pinentry = mkDefault pkgs.pinentry-gnome3;
|
||||||
|
lock_timeout = mkDefault 3600;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.rofi-rbw = {
|
||||||
|
enable = true;
|
||||||
|
package = mkDefault pkgs.rofi-rbw-wayland;
|
||||||
|
settings = {
|
||||||
|
selector = mkDefault "bemenu";
|
||||||
|
selector-args = mkDefault "-i -l 20";
|
||||||
|
action = mkDefault "copy";
|
||||||
|
typing-key-delay = mkDefault 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.librewolf = mkIf config.programs.librewolf.enable {
|
||||||
|
profiles.default.extensions.packages =
|
||||||
|
with inputs.nur.legacyPackages."${pkgs.stdenv.hostPlatform.system}".repos.rycee.firefox-addons; [
|
||||||
|
bitwarden
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -56,6 +56,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./bitwarden
|
||||||
./bemenu
|
./bemenu
|
||||||
./dmenu-bluetooth
|
./dmenu-bluetooth
|
||||||
./dunst-toggle
|
./dunst-toggle
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue