From 0e3f03106f1f3ae039d978c4c307537b293b6fb3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 15 Aug 2012 17:01:19 -0400 Subject: [PATCH] postgresql.nix: Add an option for overriding the PostgreSQL package --- modules/services/databases/postgresql.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/services/databases/postgresql.nix b/modules/services/databases/postgresql.nix index 1633b9d0fdd..398fdbd8611 100644 --- a/modules/services/databases/postgresql.nix +++ b/modules/services/databases/postgresql.nix @@ -20,7 +20,7 @@ let ''; }; - postgresql = postgresqlAndPlugins pkgs.postgresql; + postgresql = postgresqlAndPlugins cfg.package; run = "su -s ${pkgs.stdenv.shell} postgres"; @@ -54,6 +54,13 @@ in ''; }; + package = mkOption { + default = pkgs.postgresql; + description = '' + PostgreSQL package to use. + ''; + }; + port = mkOption { default = "5432"; description = ''