nixpkgs/nixos/modules/services
emilylange 100c1501e1
nixos/loki: skip config validation when it's impossible to validate
This is a follow-up to 8d7f3c9dbd and
ae48735c53.

Running the config validation in the build sandbox is impossible and
will fail when using `cfg.configFile` or `-config.expand-env=true`.

`cfg.configFile` is a string of a path which is simply not available to
the build sandbox.

Similarly, one may opt to use `cfg.configuration` with environment
variables in combination with `-config.expand-env=true`.

The environment variables referenced that way are also not available
in the build sandbox.

So we skip the validation when it's impossible (`cfg.configFile`) or
likely impossible (`-config.expand-env=true`).

An alternative approach would be something like nixos/prometheus'
`services.prometheus.checkConfig` that takes a boolean and makes
toggling the config validation user-facing.
2024-05-19 05:15:26 +02:00
..
admin pgadmin: Use systemd's LoadCredential for password files (#312569) 2024-05-19 00:16:00 +02:00
amqp nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
audio nixos/navidrome: add nu-nu-ko to maintainers 2024-05-10 21:16:30 +12:00
backup Merge pull request #310199 from symphorien/borg_ignore_warnings_master 2024-05-13 23:53:18 +02:00
blockchain/ethereum nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
cluster k3s: format with nixfmt-rfc-style 2024-05-10 18:55:54 -03:00
computing nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
continuous-integration Merge pull request #303149 from emilylange/forgejo-test-forgejo-actions 2024-04-17 08:27:13 -04:00
databases Merge master into staging-next 2024-05-01 18:01:22 +00:00
desktop-managers nixos/plasma6: add CAP_SYS_NICE for kwin_wayland 2024-05-03 02:27:44 -04:00
desktops Merge master into staging-next 2024-05-03 00:02:39 +00:00
development nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
display-managers Merge pull request #311376 from SuperSandro2000/display-managers-misc 2024-05-14 09:36:02 -04:00
editors nixos/emacs: remove docbook section in emacs documentation 2024-04-23 23:18:33 +02:00
finance nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
games nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
hardware nixos/thermald: improve doc and code about configFile and adaptive 2024-05-16 11:41:56 -04:00
home-automation nixos/ebusd: clean up module 2024-05-03 08:34:17 +01:00
logging Merge pull request #308335 from bbigras/promtail 2024-05-03 13:28:09 +02:00
mail nixos/stalwart-mail: set default lookup storage 2024-05-15 00:42:08 +02:00
matrix nixos/mautrix-signal: add module 2024-05-05 13:57:50 +02:00
misc Merge pull request #306909 from mrkline/snapper-timer 2024-05-17 10:01:04 -05:00
monitoring nixos/loki: skip config validation when it's impossible to validate 2024-05-19 05:15:26 +02:00
network-filesystems nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
networking Merge pull request #309615 from mkienitz/fix/vsftpd-assertion 2024-05-15 23:09:28 +08:00
printing nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
scheduling nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
search nixos/manticore: init module 2024-04-16 13:50:57 +02:00
security Merge pull request #250638 from benley/keycloak-systemd-notify 2024-05-15 14:13:20 -07:00
system nixos/dbus: fix switching from dbus-broker to dbus 2024-05-04 21:56:17 +02:00
torrent nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
tracing nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
ttys nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
video nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
wayland nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
web-apps Merge pull request #312249 from dotlambda/nextcloud 2024-05-16 22:27:52 +02:00
web-servers nixos/garage: assert that replication_mode is string 2024-05-15 11:48:25 +02:00
x11 Merge pull request #307011 from acid-bong/qtile-final 2024-05-18 01:55:08 +08:00