nix-config/modules/home/bitwarden/default.nix

23 lines
470 B
Nix
Raw Normal View History

{ 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";
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;
};
};
};
}