nixos-config/home/rbw.nix

26 lines
473 B
Nix
Raw Normal View History

2022-04-09 22:23:25 +02:00
{ config, lib, pkgs, ... }:
let
inherit (lib)
mkEnableOption
mkIf
;
cfg = config.my.home.mail;
in
{
options.my.home.rbw = {
enable = (mkEnableOption "rbw configuration");
};
config = mkIf cfg.enable {
programs.rbw = {
enable = true;
settings = {
email = "antoine@alarsyo.net";
base_url = "https://pass.alarsyo.net";
lock_timeout = 60 * 60 * 12;
pinentry = pkgs.pinentry-gnome;
};
};
};
}