2019-05-24 09:01:10 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.gpg = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
no-comments = false;
|
|
|
|
s2k-cipher-algo = "AES128";
|
2019-09-08 19:06:14 +02:00
|
|
|
throw-keyids = true;
|
2019-05-24 09:01:10 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-10-08 22:46:27 +02:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: {
|
|
|
|
gnupg = pkgs.writeScriptBin "dummy-gnupg" "";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-05-24 09:01:10 +02:00
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.gnupg/gpg.conf
|
|
|
|
assertFileContent home-files/.gnupg/gpg.conf ${./override-defaults-expected.conf}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|