mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 05:03:09 +00:00
gpg-agent: add extraConfig option
This commit is contained in:
parent
29191eb2c7
commit
26342588ab
2 changed files with 26 additions and 0 deletions
|
@ -739,6 +739,17 @@ in
|
||||||
A new module is available: 'programs.fish'.
|
A new module is available: 'programs.fish'.
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
time = "2018-08-18T19:03:42+00:00";
|
||||||
|
condition = config.services.gpg-agent.enable;
|
||||||
|
message = ''
|
||||||
|
A new option is available: 'services.gpg-agent.extraConfig'.
|
||||||
|
|
||||||
|
Extra lines may be appended to $HOME/.gnupg/gpg-agent.conf
|
||||||
|
using this option.
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,6 +108,19 @@ in
|
||||||
<option>disable-scdaemon</option> setting to gpg-agent.
|
<option>disable-scdaemon</option> setting to gpg-agent.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraConfig = mkOption {
|
||||||
|
type = types.lines;
|
||||||
|
default = "";
|
||||||
|
example = ''
|
||||||
|
allow-emacs-pinentry
|
||||||
|
allow-loopback-pinentry
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Extra configuration lines to append to the gpg-agent
|
||||||
|
configuration file.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -131,6 +144,8 @@ in
|
||||||
++
|
++
|
||||||
optional (cfg.maxCacheTtlSsh != null)
|
optional (cfg.maxCacheTtlSsh != null)
|
||||||
"max-cache-ttl-ssh ${toString cfg.maxCacheTtlSsh}"
|
"max-cache-ttl-ssh ${toString cfg.maxCacheTtlSsh}"
|
||||||
|
++
|
||||||
|
[ cfg.extraConfig ]
|
||||||
);
|
);
|
||||||
|
|
||||||
home.sessionVariables =
|
home.sessionVariables =
|
||||||
|
|
Loading…
Reference in a new issue