nixos/modules/ca/consumer.nix
Jake Hillion db5dc5aee6
All checks were successful
flake / flake (push) Successful in 1m14s
step-ca: enable server on sodium and load root certs
2024-08-01 23:28:22 +01:00

15 lines
266 B
Nix

{ config, pkgs, lib, ... }:
let
cfg = config.custom.ca.consumer;
in
{
options.custom.ca.consumer = {
enable = lib.mkEnableOption "ca.service";
};
config = lib.mkIf cfg.enable {
security.pki.certificates = [ (builtins.readFile ./cert.pem) ];
};
}