nixos-config/home/rbw.nix

30 lines
485 B
Nix
Raw Normal View History

2022-04-10 11:54:58 +02:00
{
config,
lib,
pkgs,
...
}: let
inherit
(lib)
2022-04-09 22:23:25 +02:00
mkEnableOption
mkIf
2022-04-10 11:54:58 +02:00
;
2022-04-09 22:23:25 +02:00
cfg = config.my.home.mail;
2022-04-10 11:54:58 +02:00
in {
2022-04-09 22:23:25 +02:00
options.my.home.rbw = {
2022-04-10 11:54:58 +02:00
enable = mkEnableOption "rbw configuration";
2022-04-09 22:23:25 +02:00
};
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;
};
};
};
}