summarylogtreecommitdiffstats
path: root/flake.nix
blob: cdc10bb2217eb379a09dc1bb8a642cd00acc1647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{
  description = "dn42 root certificates for *.dn42 and 172.22.0.0/15";
  outputs = { self }: {
    nixosModule = { config, lib, ... }: {
      options.security.pki.dn42.enable =
        lib.mkEnableOption "dn42 root certificates";

      config.security.pki.certificateFiles =
        lib.mkIf config.security.pki.dn42.enable [ ./dn42.crt ];
    };
  };
}