diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-27 12:24:10 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-27 12:24:44 +0200 |
commit | 41788255ab904ca36ce22fa9263318ad081f3e1a (patch) | |
tree | 4dc5259a06765607a2134c29d18fa400b680f4da /nixos/modules/services/databases | |
parent | 39df234f65564af47610760721d2cd89f9578605 (diff) |
Manual: Start of module-specific documentation
Diffstat (limited to 'nixos/modules/services/databases')
-rw-r--r-- | nixos/modules/services/databases/postgresql.xml | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/postgresql.xml b/nixos/modules/services/databases/postgresql.xml new file mode 100644 index 0000000000000..e98b431bd60a2 --- /dev/null +++ b/nixos/modules/services/databases/postgresql.xml @@ -0,0 +1,77 @@ +<chapter xmlns="http://docbook.org/ns/docbook" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:xi="http://www.w3.org/2001/XInclude" + version="5.0" + xml:id="module-postgresql"> + +<title>PostgreSQL</title> + +<!-- FIXME: render nicely --> + +<!-- FIXME: source can be added automatically --> +<para><emphasis>Source:</emphasis> <filename>modules/services/databases/postgresql.nix</filename></para> + +<para><emphasis>Upstream documentation:</emphasis> <link xlink:href="http://www.postgresql.org/docs/"/></para> + +<!-- FIXME: more stuff, like maintainer? --> + +<para>PostgreSQL is an advanced, free relational database.<!-- MORE --></para> + +<section><title>Configuring</title> + +<para>To enable PostgreSQL, add the following to your +<filename>configuration.nix</filename>: + +<programlisting> +services.postgresql.enable = true; +services.postgresql.package = pkgs.postgresql93; +</programlisting> + +Note that you are required to specify the desired version of +PostgreSQL (e.g. <literal>pkgs.postgresql93</literal>). Since +upgrading your PostgreSQL version requires a database dump and reload +(see below), NixOS cannot provide a default value for +<option>services.postgresql.package</option> such as the most recent +release of PostgreSQL.</para> + +<!-- +<para>After running <command>nixos-rebuild</command>, you can verify +whether PostgreSQL works by running <command>psql</command>: + +<screen> +$ psql +psql (9.2.9) +Type "help" for help. + +alice=> +</screen> +--> + +<para>By default, PostgreSQL stores its databases in +<filename>/var/db/postgresql</filename>. You can override this using +<option>services.postgresql.dataDir</option>, e.g. + +<programlisting> +services.postgresql.dataDir = "/data/postgresql"; +</programlisting> + +</para> + +</section> + + +<section><title>Upgrading</title> + +<para>FIXME: document dump/upgrade/load cycle.</para> + +</section> + + +<section><title>Options</title> + +<para>FIXME: auto-generated list of module options.</para> + +</section> + + +</chapter> |