Bruno BELANYI
65a8f7c481
Consolidating all modules under the same path, to clear out the top-level directory.
28 lines
541 B
Nix
28 lines
541 B
Nix
{ 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;
|
|
};
|
|
};
|
|
};
|
|
}
|