base/borg-config: change default values of MariaDB and PostgreSQL db opt
This commit is contained in:
@@ -75,8 +75,8 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
mariadbDatabases = mkOption {
|
mariadbDatabases = mkOption {
|
||||||
type = types.listOf types.attrs;
|
type = types.nullOr (types.listOf types.attrs);
|
||||||
default = [ ];
|
default = null;
|
||||||
description = "List of attribute sets that describe MariaDB databases";
|
description = "List of attribute sets that describe MariaDB databases";
|
||||||
example = ''
|
example = ''
|
||||||
[
|
[
|
||||||
@@ -90,8 +90,8 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
postgresqlDatabases = mkOption {
|
postgresqlDatabases = mkOption {
|
||||||
type = types.listOf types.attrs;
|
type = types.nullOr (types.listOf types.attrs);
|
||||||
default = [ ];
|
default = null;
|
||||||
description = "List of attribute sets that describe PostgreSQL databases";
|
description = "List of attribute sets that describe PostgreSQL databases";
|
||||||
example = ''
|
example = ''
|
||||||
[
|
[
|
||||||
@@ -147,8 +147,8 @@ in
|
|||||||
|
|
||||||
ssh_command = sshCommand;
|
ssh_command = sshCommand;
|
||||||
|
|
||||||
mariadb_databases = mkIf (cfg.mariadbDatabases != []) cfg.mariadbDatabases;
|
mariadb_databases = mkIf (cfg.mariadbDatabases != null) cfg.mariadbDatabases;
|
||||||
postgresql_databases = mkIf (cfg.postgresqlDatabases != []) cfg.postgresqlDatabases;
|
postgresql_databases = mkIf (cfg.postgresqlDatabases != null) cfg.postgresqlDatabases;
|
||||||
|
|
||||||
commands = cfg.commands;
|
commands = cfg.commands;
|
||||||
|
|
||||||
@@ -187,8 +187,8 @@ in
|
|||||||
|
|
||||||
ssh_command = sshCommand;
|
ssh_command = sshCommand;
|
||||||
|
|
||||||
mariadb_databases = mkIf (cfg.mariadbDatabases != []) cfg.mariadbDatabases;
|
mariadb_databases = mkIf (cfg.mariadbDatabases != null) cfg.mariadbDatabases;
|
||||||
postgresql_databases = mkIf (cfg.postgresqlDatabases != []) cfg.postgresqlDatabases;
|
postgresql_databases = mkIf (cfg.postgresqlDatabases != null) cfg.postgresqlDatabases;
|
||||||
|
|
||||||
commands = cfg.commands;
|
commands = cfg.commands;
|
||||||
|
|
||||||
@@ -210,6 +210,5 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user