summary refs log tree commit diff
path: root/nixos/modules/services/databases
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2018-09-26 12:11:28 +0100
committerDomen Kožar <domen@dev.si>2018-09-26 12:11:40 +0100
commit82feb4b66ebd841389d00ca7b3d5e9b4c3ea61c8 (patch)
tree907c84b8bbab6fe6c986ae19e3f96de636c39121 /nixos/modules/services/databases
parente0f46105aa30c4814899f16449859ed89578ecc0 (diff)
downloadnixlib-82feb4b66ebd841389d00ca7b3d5e9b4c3ea61c8.tar
nixlib-82feb4b66ebd841389d00ca7b3d5e9b4c3ea61c8.tar.gz
nixlib-82feb4b66ebd841389d00ca7b3d5e9b4c3ea61c8.tar.bz2
nixlib-82feb4b66ebd841389d00ca7b3d5e9b4c3ea61c8.tar.lz
nixlib-82feb4b66ebd841389d00ca7b3d5e9b4c3ea61c8.tar.xz
nixlib-82feb4b66ebd841389d00ca7b3d5e9b4c3ea61c8.tar.zst
nixlib-82feb4b66ebd841389d00ca7b3d5e9b4c3ea61c8.zip
postgresql: give postgres user a shell
Diffstat (limited to 'nixos/modules/services/databases')
-rw-r--r--nixos/modules/services/databases/postgresql.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix
index f59fb1c81772..de2a757196a5 100644
--- a/nixos/modules/services/databases/postgresql.nix
+++ b/nixos/modules/services/databases/postgresql.nix
@@ -188,6 +188,8 @@ in
         uid = config.ids.uids.postgres;
         group = "postgres";
         description = "PostgreSQL server user";
+        home = "${cfg.dataDir}";
+        useDefaultShell = true;
       };
 
     users.groups.postgres.gid = config.ids.gids.postgres;