os/modules/crypto/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
691 B
Nix
Raw Normal View History

2023-01-28 20:49:10 +00:00
{
lib,
config,
pkgs,
...
}:
with lib; let
2021-05-30 19:10:28 +00:00
psCfg = config.pub-solar;
2023-01-28 20:49:10 +00:00
in {
services.udev.packages = [pkgs.yubikey-personalization];
services.dbus.packages = [pkgs.gcr];
services.pcscd.enable = true;
2021-05-30 19:10:28 +00:00
services.gnome.gnome-keyring.enable = true;
2021-05-30 19:10:28 +00:00
users.users."${psCfg.user.name}".packages = with pkgs; [
libsecret
];
2021-05-30 19:10:28 +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
services.gpg-agent = {
enable = true;
2024-02-02 22:25:54 +00:00
pinentryFlavor = lib.mkDefault "gnome3";
verbose = true;
};
2021-05-30 19:10:28 +00:00
programs.gpg = {
enable = true;
};
2021-05-30 19:10:28 +00:00
};
}