37 lines
639 B
Nix
37 lines
639 B
Nix
{
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
repo = config.repo;
|
|
account = repo.account;
|
|
homeModules = config.flake.modules.homeManager;
|
|
in
|
|
{
|
|
flake.modules.homeManager.pinentry =
|
|
{ pkgs, ... }:
|
|
{
|
|
meta.pinentry.package = pkgs.pinentry-gnome3;
|
|
};
|
|
|
|
flake.modules.homeManager.passwords =
|
|
{
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
homeModules.pinentry
|
|
];
|
|
|
|
programs.rbw = {
|
|
enable = true;
|
|
settings = {
|
|
base_url = repo.services.vaultwarden.url;
|
|
email = account.primaryEmail.address;
|
|
pinentry = config.meta.pinentry.package;
|
|
};
|
|
};
|
|
};
|
|
}
|