mirror of
https://github.com/nix-community/home-manager
synced 2024-12-23 18:29:47 +01:00
gpg-agent: fix and enable tests
This commit is contained in:
parent
781d25b315
commit
78ff6b851c
3 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 = { };
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue