nixpkgs/nixos/modules
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
..
config nixos/terminfo: always use buildPlatform's terminfo (#309108) 2024-05-06 09:04:43 +00:00
hardware Merge pull request #309052 from kira-bruneau/intel-gpu-tools 2024-05-07 23:28:45 +02:00
i18n/input-method nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
image nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00
installer treewide: reanme renamed libinput options 2024-04-17 23:34:07 +02:00
misc nixos/version: support UAPI Version Format in IMAGE_VERSION field 2024-05-16 15:37:41 +02:00
profiles nixos/top-level: Rename system.forbiddenDependenciesRegex to system.forbiddenDependenciesRegexes 2024-05-02 21:08:39 +03:00
programs nixos/steam: fix maintainers 2024-05-18 21:50:10 +01:00
security nixos/confinement: Use prio 100 for RootDirectory 2024-05-13 00:40:41 +02:00
services nixos/loki: skip config validation when it's impossible to validate 2024-05-19 05:15:26 +02:00
system Merge pull request #309236 from ElvishJerricco/sd-s1-fix-xfs-fsck 2024-05-18 23:57:04 +02:00
tasks Merge pull request #287505 from jpds/zfs-scrub-trim-randomizedDelaySec 2024-05-10 02:11:13 +02:00
testing nixos/tests: set non-conflicting priority for logrotate disabling 2024-05-10 16:25:51 +03:00
virtualisation treewide: Remove usage of pkgs.{system,hostPlatform} aliases 2024-05-16 11:48:32 +02:00
module-list.nix Merge pull request #263375 from lorenzleutgeb/benchexec 2024-05-18 15:52:30 +02:00
rename.nix treewide: rename renamed sddm/displayManager settings 2024-04-08 21:56:38 +02:00