From a7da3eacaf7e3b3583fa055d2abaf27065f4cc70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Fri, 21 Jul 2023 13:53:33 +0200 Subject: [PATCH] nixos-generate-config: add 'lib' arg to configuration.nix Although 'lib' isn't needed by the default configuration, new NixOS uses can get confused when being recommended configuration.nix snippets like systemd.services.NetworkManager-wait-online.enable = lib.mkForce false; and have `sudo nixos-rebuild switch` fail with error: undefined variable 'lib' --- nixos/modules/installer/tools/tools.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/installer/tools/tools.nix b/nixos/modules/installer/tools/tools.nix index 54b0f81ee7804..4dce4f998052c 100644 --- a/nixos/modules/installer/tools/tools.nix +++ b/nixos/modules/installer/tools/tools.nix @@ -126,7 +126,7 @@ in # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running `nixos-help`). - { config, pkgs, ... }: + { config, lib, pkgs, ... }: { imports =