nixpkgs/pkgs
Florian Brandes a380674d85
pgadmin4: add option to enable desktop mode
By default, pgadmin4 uses SERVER_MODE = True. This requires
access to system directories (e.g. /var/lib/pgadmin). There is
no easy way to change this mode during runtime. One has to change
or add config files withing pgadmin's directory structure to change it
or add a system-wide config file under `/etc/pgadmin`[1].

This isn't always easy to achive or may not be possible at all. For
those usecases this implements a switch in the pgadmin4 derivation and
adds a new top-level package `pgadmin4-desktopmode`. This builds in
DESKTOP MODE and allows the usage of pgadmin4 without the nixOS module
and without access to system-wide directories.

pgadmin4 module saves the configuration to /etc/pgadmin/config_system.py
pgadmin4-desktopmode tries to read that as well. This normally fails with
a PermissionError, as the config file is owned by the user of the pgadmin module.

With the check-system-config-dir.patch this will just throw a warning
but will continue and not read the file.

If we run pgadmin4-desktopmode as root
(something one really shouldn't do), it can read the config file and fail,
because of the wrong config for desktopmode.

[1]https://www.pgadmin.org/docs/pgadmin4/latest/config_py.html

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-02-09 08:19:05 +01:00
..
applications Merge pull request #162385 from ulrikstrid/ulrikstrid/ocamlpackages-strict-deps-v2 2023-02-03 11:00:47 +01:00
build-support buildDunePackage: default to strictDeps = true 2023-02-03 08:59:34 +01:00
common-updater
data Merge pull request #210875 from oluceps/update-maple 2023-02-03 14:21:01 +08:00
desktops Merge pull request #213911 from wineee/deditor 2023-02-03 10:19:52 +08:00
development python3Packages.sphinxcontrib-youtube: init at 1.2.0 2023-02-03 12:29:13 +01:00
games
misc
os-specific Merge pull request #214258 from superherointj/linuxPackages.lttng-modules-2.13.8 2023-02-03 10:07:08 +08:00
pkgs-lib
servers Merge pull request #211654 from mweinelt/one-flask-babel-is-enough 2023-02-03 09:02:57 +08:00
shells Merge pull request #214144 from onny/fishgrc-fix 2023-02-03 10:10:46 +08:00
stdenv
test
tools pgadmin4: add option to enable desktop mode 2023-02-09 08:19:05 +01:00
top-level pgadmin4: add option to enable desktop mode 2023-02-09 08:19:05 +01:00