home: add bitwarden
This commit is contained in:
parent
e5a1105c59
commit
36c0590ae5
27
home/bitwarden/default.nix
Normal file
27
home/bitwarden/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{ 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,6 +4,7 @@
|
||||||
./aliases
|
./aliases
|
||||||
./atuin
|
./atuin
|
||||||
./bat
|
./bat
|
||||||
|
./bitwarden
|
||||||
./bluetooth
|
./bluetooth
|
||||||
./calibre
|
./calibre
|
||||||
./comma
|
./comma
|
||||||
|
|
Loading…
Reference in a new issue