mirror of
https://github.com/nix-community/home-manager
synced 2024-12-28 12:49:48 +01:00
e0bfb57d62
PR #810
(cherry picked from commit ea1794a798
)
30 lines
630 B
Nix
30 lines
630 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}
|
|
|
|
assertFileNotRegex activate "^unset GNUPGHOME keyId importTrust$"
|
|
'';
|
|
};
|
|
}
|