home: add bitwarden

This commit is contained in:
Bruno BELANYI 2021-05-11 12:43:42 +02:00
parent e5a1105c59
commit 36c0590ae5
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{ config, lib, ... }:
let
cfg = config.my.home.bitwarden;
in
{
options.my.home.bitwarden = with lib; {
enable = my.mkDisableOption "bitwarden configuration";
pinentry = mkOption {
type = types.str;
default = "tty";
example = "gtk2";
description = "Which pinentry interface to use";
};
};
config = lib.mkIf cfg.enable {
programs.rbw = {
enable = true;
settings = {
email = lib.my.mkMailAddress "bruno" "belanyi.fr";
inherit (cfg) pinentry;
};
};
};
}

View File

@ -4,6 +4,7 @@
./aliases
./atuin
./bat
./bitwarden
./bluetooth
./calibre
./comma