1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-01-10 11:09:49 +01:00
home-manager/tests/modules/programs/gpg/override-defaults.nix

29 lines
519 B
Nix
Raw Normal View History

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";
throw-keyids = true;
2019-05-24 09:01:10 +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}
'';
};
}