parent
4a2ad39114
commit
49dc072b81
56 changed files with 684 additions and 506 deletions
modules/caddy-plus
|
@ -92,7 +92,7 @@ self: {
|
|||
}/Caddyfile";
|
||||
in {
|
||||
options.services.caddy.virtualHosts = mkOption {
|
||||
type = types.attrsOf (types.submodule (import ./vhost-options.nix {inherit cfg;}));
|
||||
type = types.attrsOf (types.submodule (import ./vhost-options.nix cfg));
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{cfg}: {
|
||||
cfg: {
|
||||
lib,
|
||||
name,
|
||||
...
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{cfg}: {
|
||||
cfg: {
|
||||
lib,
|
||||
name,
|
||||
...
|
||||
|
@ -22,7 +22,7 @@ in {
|
|||
};
|
||||
|
||||
subDirectories = mkOption {
|
||||
type = types.attrsOf (types.submodule (import ./sub-dir-options.nix {inherit cfg;}));
|
||||
type = types.attrsOf (types.submodule (import ./sub-dir-options.nix cfg));
|
||||
default = {};
|
||||
example = literalExpression ''
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{cfg}: {lib, ...}: let
|
||||
cfg: {lib, ...}: let
|
||||
inherit (lib) literalExpression mkOption types;
|
||||
in {
|
||||
options = {
|
||||
|
@ -12,7 +12,7 @@ in {
|
|||
};
|
||||
|
||||
subDomains = mkOption {
|
||||
type = types.attrsOf (types.submodule (import ./sub-domain-options.nix {inherit cfg;}));
|
||||
type = types.attrsOf (types.submodule (import ./sub-domain-options.nix cfg));
|
||||
default = {};
|
||||
example = literalExpression ''
|
||||
{
|
||||
|
@ -30,7 +30,7 @@ in {
|
|||
};
|
||||
|
||||
subDirectories = mkOption {
|
||||
type = types.attrsOf (types.submodule (import ./sub-dir-options.nix {inherit cfg;}));
|
||||
type = types.attrsOf (types.submodule (import ./sub-dir-options.nix cfg));
|
||||
default = {};
|
||||
example = literalExpression ''
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue