home: setup rbw module

This commit is contained in:
Antoine Martin 2022-04-09 22:23:25 +02:00
parent 4f0496ca99
commit b6077dabf3
3 changed files with 26 additions and 1 deletions

View file

@ -41,7 +41,6 @@ in
mpv mpv
obs-studio obs-studio
pavucontrol pavucontrol
rbw
slack slack
spotify spotify
tdesktop tdesktop

View file

@ -12,6 +12,7 @@
./laptop.nix ./laptop.nix
./lorri.nix ./lorri.nix
./mail.nix ./mail.nix
./rbw.nix
./rofi.nix ./rofi.nix
./ssh.nix ./ssh.nix
./themes ./themes

25
home/rbw.nix Normal file
View file

@ -0,0 +1,25 @@
{ 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;
};
};
};
}