27 lines
412 B
Nix
27 lines
412 B
Nix
{
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
repo = config.repo;
|
|
account = repo.account;
|
|
in
|
|
{
|
|
flake.modules.homeManager.bitwarden =
|
|
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
programs.rbw = {
|
|
enable = true;
|
|
settings = {
|
|
base_url = repo.services.vaultwarden.url;
|
|
email = account.primaryEmail.address;
|
|
pinentry = pkgs.pinentry-gnome3;
|
|
};
|
|
};
|
|
};
|
|
}
|