1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00
home-manager/tests/modules/programs/gpg/override-defaults.nix

30 lines
618 B
Nix
Raw Permalink 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;
trusted-key = [ "0xXXXXXXXXXXXXX" "0xYYYYYYYYYYYYY" ];
2019-05-24 09:01:10 +02:00
};
2019-10-25 17:12:40 +02:00
homedir = "${config.home.homeDirectory}/bar/foopg";
2019-05-24 09:01:10 +02:00
};
nmt.script = ''
2019-10-25 17:12:40 +02:00
assertFileExists home-files/bar/foopg/gpg.conf
assertFileContent home-files/bar/foopg/gpg.conf ${
./override-defaults-expected.conf
}
assertFileNotRegex activate "^unset GNUPGHOME keyId importTrust$"
2019-05-24 09:01:10 +02:00
'';
};
}