nixos/modules/security/certs/default.nix

20 lines
289 B
Nix
Raw Normal View History

2023-10-08 14:46:05 +04:00
{
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.security.certs;
in {
options.modules.security.certs = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
security.pki.certificateFiles = [./trust/homelab.pem];
};
}