From 36c0590ae59700f98ad8c18702ebdcb0c14323bb Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 11 May 2021 12:43:42 +0200 Subject: [PATCH] home: add bitwarden --- home/bitwarden/default.nix | 27 +++++++++++++++++++++++++++ home/default.nix | 1 + 2 files changed, 28 insertions(+) create mode 100644 home/bitwarden/default.nix diff --git a/home/bitwarden/default.nix b/home/bitwarden/default.nix new file mode 100644 index 0000000..c709f7b --- /dev/null +++ b/home/bitwarden/default.nix @@ -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; + }; + }; + }; +} diff --git a/home/default.nix b/home/default.nix index 6b6ad36..8ba3a8d 100644 --- a/home/default.nix +++ b/home/default.nix @@ -4,6 +4,7 @@ ./aliases ./atuin ./bat + ./bitwarden ./bluetooth ./calibre ./comma