Require postgres version to be configured manually
This commit is contained in:
parent
2b415162b6
commit
9ac8c89417
9 changed files with 16 additions and 10 deletions
|
@ -11,11 +11,15 @@ in
|
|||
with lib;
|
||||
{
|
||||
options.qois.postgresql = {
|
||||
enable = mkEnableOption ''Enable postgresql services with defaults'';
|
||||
# Note: this module is auto-enabled if postgres is used.
|
||||
package = mkPackageOption pkgs "postgresql" {
|
||||
example = "postgresql_15";
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.postgresql.enable = true;
|
||||
config = mkIf config.services.postgresql.enable {
|
||||
services.postgresql.package = cfg.package;
|
||||
services.postgresqlBackup.enable = true;
|
||||
qois.backup-client.includePaths = [ config.services.postgresqlBackup.location ];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue