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:
parent
781d25b315
commit
78ff6b851c
3 changed files with 5 additions and 2 deletions
|
@ -131,6 +131,7 @@ import nmt {
|
||||||
./modules/services/fluidsynth
|
./modules/services/fluidsynth
|
||||||
./modules/services/fnott
|
./modules/services/fnott
|
||||||
./modules/services/git-sync
|
./modules/services/git-sync
|
||||||
|
./modules/services/gpg-agent
|
||||||
./modules/services/kanshi
|
./modules/services/kanshi
|
||||||
./modules/services/lieer
|
./modules/services/lieer
|
||||||
./modules/services/pantalaimon
|
./modules/services/pantalaimon
|
||||||
|
|
|
@ -5,6 +5,7 @@ with lib;
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
services.gpg-agent.enable = true;
|
services.gpg-agent.enable = true;
|
||||||
|
services.gpg-agent.pinentryFlavor = null; # Don't build pinentry package.
|
||||||
programs.gpg.enable = true;
|
programs.gpg.enable = true;
|
||||||
|
|
||||||
test.stubs.gnupg = { };
|
test.stubs.gnupg = { };
|
||||||
|
|
|
@ -5,16 +5,17 @@ with lib;
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
services.gpg-agent.enable = true;
|
services.gpg-agent.enable = true;
|
||||||
|
services.gpg-agent.pinentryFlavor = null; # Don't build pinentry package.
|
||||||
programs.gpg = {
|
programs.gpg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
homedir = "${config.home.homeDirectory}/foo/bar";
|
homedir = "/path/to/hash";
|
||||||
};
|
};
|
||||||
|
|
||||||
test.stubs.gnupg = { };
|
test.stubs.gnupg = { };
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
in="${config.systemd.user.sockets.gpg-agent.Socket.ListenStream}"
|
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
|
then
|
||||||
echo $in
|
echo $in
|
||||||
fail "gpg-agent socket directory is malformed"
|
fail "gpg-agent socket directory is malformed"
|
||||||
|
|
Loading…
Reference in a new issue