clanServices/sshd: readd default
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
options.certificate = {
|
options.certificate = {
|
||||||
searchDomains = lib.mkOption {
|
searchDomains = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
|
default = [ ];
|
||||||
example = [ "mydomain.com" ];
|
example = [ "mydomain.com" ];
|
||||||
description = ''
|
description = ''
|
||||||
List of domains to include in the certificate.
|
List of domains to include in the certificate.
|
||||||
@@ -68,7 +69,7 @@
|
|||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
hostKeys.rsa.enable = lib.mkEnableOption "Also generates an RSA host key";
|
hostKeys.rsa.enable = lib.mkEnableOption "generating a RSA host key";
|
||||||
|
|
||||||
certificate = {
|
certificate = {
|
||||||
searchDomains = lib.mkOption {
|
searchDomains = lib.mkOption {
|
||||||
@@ -96,9 +97,7 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
|
||||||
clan.core.vars.generators = {
|
clan.core.vars.generators = {
|
||||||
|
|
||||||
openssh-ca = lib.mkIf (settings.certificate.searchDomains != [ ]) {
|
openssh-ca = lib.mkIf (settings.certificate.searchDomains != [ ]) {
|
||||||
share = true;
|
share = true;
|
||||||
files.id_ed25519.deploy = false;
|
files.id_ed25519.deploy = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user