19 lines
315 B
Nix
19 lines
315 B
Nix
{ lib, config, ... }:
|
|
|
|
let
|
|
cfg = config.systemSettings.security.gpg;
|
|
in {
|
|
options = {
|
|
systemSettings.security.gpg = {
|
|
enable = lib.mkEnableOption "Enable gpg";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.gnupg.agent = {
|
|
enable = true;
|
|
enableSSHSupport = true;
|
|
};
|
|
};
|
|
}
|