changed certs dir
This commit is contained in:
@@ -67,11 +67,11 @@ in
|
|||||||
flake.modules.nixos.mtls = { config, lib, pkgs, ... }:
|
flake.modules.nixos.mtls = { config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.mtls;
|
cfg = config.mtls;
|
||||||
certDir = cfg.certDir;
|
certDir = "/etc/step/certs";
|
||||||
tlsKey = "${certDir}/${cfg.keyFilename}";
|
tlsKey = "${certDir}/${cfg.keyFilename}";
|
||||||
tlsCert = "${certDir}/${cfg.certFilename}";
|
tlsCert = "${certDir}/${cfg.certFilename}";
|
||||||
mtlsBundle = "${certDir}/${cfg.bundleFilename}";
|
mtlsBundle = "${certDir}/${cfg.bundleFilename}";
|
||||||
rootCA = "${cfg.certDir}/certs/root_ca.crt";
|
rootCA = "${certDir}/root_ca.crt";
|
||||||
sanArgs = lib.concatMapStringsSep " " (san: "--san \"${san}\"") cfg.san;
|
sanArgs = lib.concatMapStringsSep " " (san: "--san \"${san}\"") cfg.san;
|
||||||
renewReloadScript = lib.concatMapStringsSep "\n" (unit: ''
|
renewReloadScript = lib.concatMapStringsSep "\n" (unit: ''
|
||||||
if ${lib.getExe' pkgs.systemd "systemctl"} --quiet is-active "${unit}"; then
|
if ${lib.getExe' pkgs.systemd "systemctl"} --quiet is-active "${unit}"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user