diff options
author | Christopher Baines <mail@cbaines.net> | 2018-01-18 22:45:26 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-03-03 23:52:23 +0000 |
commit | 1e6b9c6e164df01ecf1b255fa95a246f698a8c34 (patch) | |
tree | 032f0cbeed868e9f1db7660e26e824bfdb14bc00 /gnu | |
parent | 8b2219d84704a362e9a6c34d94458af275aac88f (diff) | |
download | guix-1e6b9c6e164df01ecf1b255fa95a246f698a8c34.tar guix-1e6b9c6e164df01ecf1b255fa95a246f698a8c34.tar.gz |
services: postgresql: Add a default-value to the postgresql-service-type.
* gnu/packages/databases.scm (<postgresql-configuration>)
[config-file,data-directory]: Add default.
(postgresql-service-type)[default-value]:
Set to (postgresql-configuration).
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/services/databases.scm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm index b34a67aa95..3db9472ee3 100644 --- a/gnu/services/databases.scm +++ b/gnu/services/databases.scm @@ -77,8 +77,10 @@ (default 5432)) (locale postgresql-configuration-locale (default "en_US.utf8")) - (config-file postgresql-configuration-file) - (data-directory postgresql-configuration-data-directory)) + (config-file postgresql-configuration-file + (default %default-postgres-config)) + (data-directory postgresql-configuration-data-directory + (default "/var/lib/postgresql/data"))) (define %default-postgres-hba (plain-file "pg_hba.conf" @@ -184,7 +186,8 @@ host all all ::1/128 trust")) (service-extension activation-service-type postgresql-activation) (service-extension account-service-type - (const %postgresql-accounts)))))) + (const %postgresql-accounts)))) + (default-value (postgresql-configuration)))) (define* (postgresql-service #:key (postgresql postgresql) (port 5432) |