2024-03-16 19:49:00 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2021-05-11 12:43:42 +02:00
|
|
|
let
|
|
|
|
cfg = config.my.home.bitwarden;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.my.home.bitwarden = with lib; {
|
|
|
|
enable = my.mkDisableOption "bitwarden configuration";
|
|
|
|
|
2024-03-16 19:49:00 +01:00
|
|
|
pinentry = mkPackageOption pkgs "pinentry" { default = [ "pinentry-tty" ]; };
|
2021-05-11 12:43:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.rbw = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
email = lib.my.mkMailAddress "bruno" "belanyi.fr";
|
|
|
|
inherit (cfg) pinentry;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|