os/modules/crypto/default.nix

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

34 lines
677 B
Nix
Raw Normal View History

2021-05-30 19:10:28 +00:00
{
lib,
config,
pkgs,
...
}:
with lib; let
psCfg = config.pub-solar;
in {
2024-01-06 09:46:10 +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
2024-01-06 09:46:10 +00:00
services.gnome.gnome-keyring.enable = true;
2021-05-30 19:10:28 +00:00
2024-01-06 09:46:10 +00:00
users.users."${psCfg.user.name}".packages = with pkgs; [
libsecret
];
2021-05-30 19:10:28 +00:00
2024-01-06 09:46:10 +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
2024-01-06 09:46:10 +00:00
services.gpg-agent = {
enable = true;
pinentryFlavor = "gnome3";
verbose = true;
};
2021-05-30 19:10:28 +00:00
2024-01-06 09:46:10 +00:00
programs.gpg = {
enable = true;
};
2021-05-30 19:10:28 +00:00
};
}