-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [noticket] Change wiki publish to tag releases
- Loading branch information
Showing
2 changed files
with
148 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
{ pkgs, lib, ... }: | ||
#{ pkgs, config, inputs, lib, ... }: | ||
let | ||
in { | ||
options.kellerkinder = { | ||
# config.kellerkinder = { | ||
enable = lib.mkOption { | ||
type = lib.types.bool; | ||
description = "Enables the Kellerkinder devenv environment"; | ||
default = true; | ||
}; | ||
|
||
phpVersion = lib.mkOption { | ||
type = lib.types.str; | ||
description = "PHP Version"; | ||
default = "php81"; | ||
}; | ||
|
||
systemConfig = lib.mkOption { | ||
type = lib.types.attrsOf lib.types.str; | ||
description = "shopware system config settings"; | ||
default = { }; | ||
example = { | ||
"foo.bar.testString" = "false"; | ||
}; | ||
}; | ||
|
||
additionalPhpConfig = lib.mkOption { | ||
type = lib.types.str; | ||
description = "Additional php.ini configuration"; | ||
default = ""; | ||
example = '' | ||
memory_limit = 0 | ||
''; | ||
}; | ||
|
||
additionalPhpExtensions = lib.mkOption { | ||
type = lib.types.listOf lib.types.str; | ||
description = "Additional PHP extensions"; | ||
default = [ ]; | ||
example = [ "mailparse" ]; | ||
}; | ||
|
||
additionalVhostConfig = lib.mkOption { | ||
type = lib.types.str; | ||
description = "Additional vhost configuration"; | ||
default = ""; | ||
}; | ||
|
||
additionalServerAlias = lib.mkOption { | ||
type = lib.types.listOf lib.types.str; | ||
description = "Additional server alias"; | ||
default = [ ]; | ||
example = [ "example.com" ]; | ||
}; | ||
|
||
enableElasticsearch = lib.mkOption { | ||
type = lib.types.bool; | ||
description = "Enables Elasticsearch"; | ||
default = false; | ||
}; | ||
|
||
enableOpenSearch = lib.mkOption { | ||
type = lib.types.bool; | ||
description = "Enables OpenSearch"; | ||
default = false; | ||
}; | ||
|
||
enableRabbitMq = lib.mkOption { | ||
type = lib.types.bool; | ||
description = "Enables RabbitMQ"; | ||
default = false; | ||
}; | ||
|
||
importDatabaseDumps = lib.mkOption { | ||
type = lib.types.listOf lib.types.str; | ||
description = "List of links to be imported with command importdb"; | ||
default = [ ]; | ||
example = [ | ||
"http://localhost/dump.sql.gz" | ||
"http://localhost/dump.sql" | ||
]; | ||
}; | ||
|
||
documentRoot = lib.mkOption { | ||
type = lib.types.str; | ||
description = "Sets the docroot of caddy"; | ||
default = "public"; | ||
}; | ||
|
||
indexFile = lib.mkOption { | ||
type = lib.types.str; | ||
description = "Sets the caddy index file for the document root"; | ||
default = "index.php"; | ||
}; | ||
|
||
projectRoot = lib.mkOption { | ||
type = lib.types.str; | ||
description = "Root of the project as path from the file devenv.nix"; | ||
default = "."; | ||
example = "project"; | ||
}; | ||
|
||
staticFilePaths = lib.mkOption { | ||
type = lib.types.str; | ||
description = ''Sets the matcher paths to be "ignored" by caddy''; | ||
default = "/theme/* /media/* /thumbnail/* /bundles/* /css/* /fonts/* /js/* /recovery/* /sitemap/*"; | ||
}; | ||
|
||
fallbackMediaUrl = lib.mkOption { | ||
type = lib.types.str; | ||
description = ''Fallback URL for media not found on local storage. Best for CDN purposes without downloading them.''; | ||
default = ""; | ||
}; | ||
|
||
fallbackMediaPaths = lib.mkOption { | ||
type = lib.types.str; | ||
description = ''Sets the paths to be redirected to the fallbackMediaUrl.''; | ||
default = "/media/* /thumbnail/*"; | ||
}; | ||
|
||
additionalPackages = lib.mkOption { | ||
type = lib.types.listOf lib.types.package; | ||
description = "Additional packages to be installed"; | ||
default = [ ]; | ||
example = [ pkgs.jpegoptim pkgs.optipng pkgs.gifsicle ]; | ||
}; | ||
|
||
enableMysqlBinLog = lib.mkOption { | ||
type = lib.types.bool; | ||
description = ''Enables MySQL binary logs''; | ||
default = false; | ||
}; | ||
|
||
httpPort = lib.mkOption { | ||
type = lib.types.str; | ||
description = ''Sets the HTTP port''; | ||
default = "80"; | ||
}; | ||
|
||
httpsPort = lib.mkOption { | ||
type = lib.types.str; | ||
description = ''Sets the HTTPS port''; | ||
default = "443"; | ||
}; | ||
}; | ||
} |