2019-05-24 07:01:10 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.gpg = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
no-comments = false;
|
|
|
|
s2k-cipher-algo = "AES128";
|
2019-09-08 17:06:14 +00:00
|
|
|
throw-keyids = true;
|
2022-02-27 01:19:28 +00:00
|
|
|
trusted-key = [ "0xXXXXXXXXXXXXX" "0xYYYYYYYYYYYYY" ];
|
2019-05-24 07:01:10 +00:00
|
|
|
};
|
2019-10-25 15:12:40 +00:00
|
|
|
|
|
|
|
homedir = "${config.home.homeDirectory}/bar/foopg";
|
2019-05-24 07:01:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
2019-10-25 15:12:40 +00:00
|
|
|
assertFileExists home-files/bar/foopg/gpg.conf
|
2022-02-27 01:19:28 +00:00
|
|
|
assertFileContent home-files/bar/foopg/gpg.conf ${
|
|
|
|
./override-defaults-expected.conf
|
|
|
|
}
|
2019-08-20 08:30:13 +00:00
|
|
|
|
|
|
|
assertFileNotRegex activate "^unset GNUPGHOME keyId importTrust$"
|
2019-05-24 07:01:10 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|