mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
25 lines
452 B
Nix
25 lines
452 B
Nix
{ lib, config, ... }:
|
|
|
|
with lib;
|
|
let cfg = config.modules.gpg;
|
|
|
|
in
|
|
{ options.modules.gpg = { enable = mkEnableOption "gpg"; };
|
|
config = mkIf cfg.enable {
|
|
programs.gpg = {
|
|
enable = true;
|
|
publicKeys = [
|
|
{
|
|
text = import ./config/pubKey.nix;
|
|
trust = 5;
|
|
}
|
|
];
|
|
};
|
|
|
|
services.gpg-agent = {
|
|
enable = true;
|
|
enableSshSupport = true;
|
|
enableBashIntegration = true;
|
|
};
|
|
};
|
|
}
|