NixOSでPostgreSQL
NixOS
,
PostgreSQL
https://nixos.wiki/wiki/PostgreSQL
Depending on the system.stateVersion of your system, the default super-user username will change:
17.03 and earlier: the superuser is
root
17.09 and later: the superuser is
postgres
NixOS
の17.09以降では以下
$ sudo -u postgres psql