1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-26 19:59:47 +01:00
home-manager/tests/modules/programs/gpg/override-defaults.nix
2021-04-14 23:44:34 +02:00

28 lines
557 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.gpg = {
enable = true;
settings = {
no-comments = false;
s2k-cipher-algo = "AES128";
throw-keyids = true;
trusted-key = [
"0xXXXXXXXXXXXXX"
"0xYYYYYYYYYYYYY"
];
};
homedir = "${config.home.homeDirectory}/bar/foopg";
};
nmt.script = ''
assertFileExists home-files/bar/foopg/gpg.conf
assertFileContent home-files/bar/foopg/gpg.conf ${./override-defaults-expected.conf}
'';
};
}