Nextcloud sync, also zapzap
This commit is contained in:
@@ -11,4 +11,14 @@
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Shared silent presence check for the GPG smartcard (the YubiKey's OpenPGP
|
||||
# applet): `gpg --card-status` only queries the reader, never invoking
|
||||
# pinentry, so it's safe to poll without ever producing a "please insert
|
||||
# card" prompt. Used by both the mail sync timer and the Nextcloud mount
|
||||
# service to gate on `pass` being decryptable.
|
||||
config.flake.overlayPkgs.azos-card-present = pkgs:
|
||||
pkgs.writeShellScriptBin "azos-card-present" ''
|
||||
exec ${pkgs.gnupg}/bin/gpg --card-status >/dev/null 2>&1
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user