Skip to content

Commit

Permalink
nix.conf: disable config checks on "checkConfig = false"
Browse files Browse the repository at this point in the history
checkConfig = false used to trigger on nix 2.3
  • Loading branch information
cab404 authored and PhilTaken committed Jan 26, 2023
1 parent 6751d98 commit 1dfdbb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/nix-daemon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ let
if pkgs.stdenv.hostPlatform != pkgs.stdenv.buildPlatform then ''
echo "Ignoring validation for cross-compilation"
''
else ''
else if !cfg.checkConfig then ":" else ''
echo "Validating generated nix.conf"
ln -s $out ./nix.conf
set -e
Expand Down

0 comments on commit 1dfdbb6

Please sign in to comment.