2023-01-28 20:49:10 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-13 00:14:25 +00:00
|
|
|
let
|
2021-05-30 19:10:28 +00:00
|
|
|
psCfg = config.pub-solar;
|
2023-01-28 20:49:10 +00:00
|
|
|
in
|
|
|
|
{
|
2023-11-10 18:48:06 +00:00
|
|
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
|
|
|
services.dbus.packages = [ pkgs.gcr ];
|
|
|
|
services.pcscd.enable = true;
|
2021-05-30 19:10:28 +00:00
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
services.gnome.gnome-keyring.enable = true;
|
2021-05-30 19:10:28 +00:00
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
users.users."${psCfg.user.name}".packages = with pkgs; [ libsecret ];
|
2021-05-30 19:10:28 +00:00
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
home-manager.users."${psCfg.user.name}" = {
|
|
|
|
systemd.user.services.polkit-gnome-authentication-agent = import ./polkit-gnome-authentication-agent.service.nix pkgs;
|
2021-05-30 19:10:28 +00:00
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
services.gpg-agent = {
|
|
|
|
enable = true;
|
2024-04-18 10:57:14 +00:00
|
|
|
pinentryPackage = lib.mkDefault pkgs.pinentry-gnome3;
|
2023-11-10 18:48:06 +00:00
|
|
|
verbose = true;
|
|
|
|
};
|
2021-05-30 19:10:28 +00:00
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
programs.gpg = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2021-05-30 19:10:28 +00:00
|
|
|
};
|
|
|
|
}
|