1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

gpg-agent: fix and enable tests

This commit is contained in:
oxalica 2021-11-26 02:28:18 +08:00 committed by Robert Helgesson
parent 781d25b315
commit 78ff6b851c
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 5 additions and 2 deletions

View file

@ -131,6 +131,7 @@ import nmt {
./modules/services/fluidsynth
./modules/services/fnott
./modules/services/git-sync
./modules/services/gpg-agent
./modules/services/kanshi
./modules/services/lieer
./modules/services/pantalaimon

View file

@ -5,6 +5,7 @@ with lib;
{
config = {
services.gpg-agent.enable = true;
services.gpg-agent.pinentryFlavor = null; # Don't build pinentry package.
programs.gpg.enable = true;
test.stubs.gnupg = { };

View file

@ -5,16 +5,17 @@ with lib;
{
config = {
services.gpg-agent.enable = true;
services.gpg-agent.pinentryFlavor = null; # Don't build pinentry package.
programs.gpg = {
enable = true;
homedir = "${config.home.homeDirectory}/foo/bar";
homedir = "/path/to/hash";
};
test.stubs.gnupg = { };
nmt.script = ''
in="${config.systemd.user.sockets.gpg-agent.Socket.ListenStream}"
if [[ $in != "%t/gnupg/d."????????????????????????"/S.gpg-agent" ]]
if [[ $in != "%t/gnupg/d.wp4h7ks5zxy4dodqadgpbbpz/S.gpg-agent" ]]
then
echo $in
fail "gpg-agent socket directory is malformed"