nixos/modules/security/certs/default.nix

20 lines
287 B
Nix
Raw Normal View History

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