Posted on (↻ ).

Table of Contents

Installation

/etc/nixos/configuration.nix

services.postgresql.enable = true;
services.postgresql.package = pkgs.postgresql_12;
services.postgresql.dataDir = "/data/postgresql";

NixOS – PostgreSQL

Setup

sudo [--user -u] postgres createuser [--username -U] postgres [--superuser -s] taupiqueur
sudo [--user -u] postgres createdb taupiqueur