mirror of
https://github.com/nix-community/home-manager
synced 2024-09-06 03:16:30 +02:00
Allow for duplicate keys in the form of a list of strings. Also update the `settings` example configuration to use `literalExample`.
27 lines
492 B
Nix
27 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}
|
|
'';
|
|
};
|
|
}
|