improved key compat

This commit is contained in:
Bryan Ramos 2026-03-11 06:20:39 -04:00
parent d4a8d706fb
commit 5d208e81ac
3 changed files with 11 additions and 0 deletions

View file

@ -1,5 +1,11 @@
{ pkgs, lib, config, ... }:
let
gpgEnabled = lib.any
(user: user.modules.user.security.gpg.enable or false)
(lib.attrValues config.home-manager.users);
in
{ system.stateVersion = "23.11";
users.users = {
@ -91,6 +97,7 @@
};
services = {
pcscd.enable = gpgEnabled;
timesyncd = lib.mkDefault {
enable = true;
servers = [

View file

@ -17,6 +17,7 @@ in
pass
wireguard-tools
ipscan
yubikey-manager
];
};
}

View file

@ -13,6 +13,9 @@ in
config = mkIf cfg.enable {
programs.gpg = {
enable = true;
scdaemonSettings = {
disable-ccid = true;
};
publicKeys = [
{
text = "${config.user.keys.pgp.primary}";