added: enable info per default

fix: allow ca paths only
This commit is contained in:
2022-12-07 18:03:10 +01:00
parent 4a69fbead6
commit 174d2e0cfb
2 changed files with 2 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
{ config, pkgs, lib, ... }: with lib; let
cfg = config.services.ssh-cert-dist;
ca = if isPath cfg.ca then cfg.ca else pkgs.writeText "ssh-ca" cfg.ca;
in
{
options.services.ssh-cert-dist = {
@@ -18,7 +17,7 @@ in
default = pkgs.ssh-cert-dist;
};
ca = mkOption {
type = with types; either str path;
type = types.path;
};
dataDir = mkOption {
type = types.path;