nixos/modules/security/certs/default.nix
2024-08-01 16:24:09 +04:00

19 lines
287 B
Nix

{
outputs,
options,
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.security.certs;
in {
options.modules.security.certs = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
security.pki.certificateFiles = [./trust/homelab.pem];
};
}