nixos/modules/security/certs/default.nix
2023-10-08 14:46:05 +04:00

19 lines
289 B
Nix

{
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];
};
}