mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
allow custom pre-setup config options
This commit is contained in:
parent
80d71bd7a0
commit
b3a1e80f6f
5 changed files with 25 additions and 5 deletions
|
|
@ -12,7 +12,7 @@ with lib; let
|
|||
app_directories = cfg.appDirectories;
|
||||
work_dir = cfg.workDir;
|
||||
auto_setup = {
|
||||
enabled = cfg.autoSetup.enable;
|
||||
inherit (cfg.autoSetup) enable config;
|
||||
post_setup = cfg.autoSetup.postSetup;
|
||||
enable_apps = cfg.autoSetup.enableApps;
|
||||
disable_apps = cfg.autoSetup.disableApps;
|
||||
|
|
@ -91,6 +91,13 @@ in {
|
|||
default = [];
|
||||
description = "Commands to run post-setup";
|
||||
};
|
||||
config = mkOption {
|
||||
type = types.submodule {
|
||||
freeformType = format.type;
|
||||
};
|
||||
description = "Configuration options to set before install";
|
||||
default = {};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ if (file_exists(__DIR__ . '/nextcloud.json')) {
|
|||
$CONFIG = array_merge_recursive($extra_config, [
|
||||
'debug' => true,
|
||||
'memcache.local' => '\\OC\\Memcache\\APCu',
|
||||
'memcache.distributed' => '\\OC\\Memcache\\APCu',
|
||||
'memcache.locking' => '\\OC\\Memcache\\APCu',
|
||||
'memcache.distributed' => '\\OC\\Memcache\\Redis',
|
||||
'memcache.locking' => '\\OC\\Memcache\\Redis',
|
||||
'allow_local_remote_servers' => true,
|
||||
'trusted_domains' => ['cloud'],
|
||||
'profiling.secret' => 'haze',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue