1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/nixos/modules
Danylo Hlynskyi 5443eee47c
nixos/postgresql: support 0750 for data directory (#65245)
* nixos/postgresql: support 0750 for data directory

This is rework of part of https://github.com/NixOS/nixpkgs/pull/46670.
My usecase was to be able to inspect PG datadir as wheel user.

PG11 now allows starting server with 0750 mask for data dir.
`groupAccess = true` now does this automatically. The only thing you have to do
is to set group ownership.

For PG10 and below, I've described a hack how this can be done. Before this PR
hack was impossible. The hack isn't ideal, because there is short
period of time when dir mode is 0700, so I didn't want to make it official.

Test/example is present too.

* postgresql: allow changing initidb arguments via module system

Closes https://github.com/NixOS/nixpkgs/issues/18829

+ some cleanups

* addressed review comments and some fixes

* whoops

* change groupAccess to tristate, to not force `chmod` on dataDir.

Making mask either 0700 or 0750 is too restrictive..

* WIP

* let's not support group mode for versions pre-11.

The only fix is to change mode to 0700 before start, because otherwise postgresql
doesn't start, and error is non-obvious.
2020-02-14 20:51:20 +02:00
..
config Merge pull request #71302 from tokudan/encrypted-swap-entropy-fix 2020-02-12 01:28:03 +01:00
hardware nixos/brightnessctl: Remove the module 2020-02-10 23:18:20 +01:00
i18n/input-method nixos/ibus: fix missing dconf profile 2020-01-06 20:30:37 +09:00
installer installation-cd-graphical-base.nix: adding git (#79098) 2020-02-14 18:52:18 +02:00
misc nixos.revision: Use null instead of "master" 2020-02-10 15:45:15 +01:00
profiles nixos/plasma5: drop enableQt4Support option 2019-11-22 09:01:05 +01:00
programs nixos/sway: use new package name for rxvt-unicode 2020-02-13 09:36:35 +01:00
security Merge pull request #71302 from tokudan/encrypted-swap-entropy-fix 2020-02-12 01:28:03 +01:00
services let's not support group mode for versions pre-11. 2020-02-14 19:16:34 +02:00
system Merge pull request #76481 from fare-patches/vesa 2020-02-13 09:47:54 +01:00
tasks nixos/filesystems: don't chown /run/keys recursively 2020-02-11 21:52:27 +01:00
testing nixos/testing: remove leftover of virtualisation.qemu.program 2019-08-29 10:12:13 +02:00
virtualisation nixos/virtualisation.hypervGuest: use elevator=noop 2020-02-09 19:50:13 +01:00
module-list.nix Merge pull request #79663 from primeos/brightnessctl-systemd-support 2020-02-13 23:14:20 +01:00
rename.nix nixos/brightnessctl: Remove the module 2020-02-10 23:18:20 +01:00