mirror of
https://github.com/nix-community/home-manager
synced 2024-12-26 19:59:47 +01:00
eb3a0342a8
Allow for duplicate keys in the form of a list of strings. Also update the `settings` example configuration to use `literalExample`.
26 lines
492 B
Nix
26 lines
492 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"
|
|
];
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.gnupg/gpg.conf
|
|
assertFileContent home-files/.gnupg/gpg.conf ${./override-defaults-expected.conf}
|
|
'';
|
|
};
|
|
}
|