about summary refs log tree commit diff
path: root/nixos/modules/installer
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2023-07-21 13:53:33 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2023-07-21 13:53:33 +0200
commita7da3eacaf7e3b3583fa055d2abaf27065f4cc70 (patch)
tree1f2b9ceae4e04e7b961efc91c4409a0ae597ae98 /nixos/modules/installer
parente4f119b7812065ec49527b9421c9fa5fcefc60e2 (diff)
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'
Diffstat (limited to 'nixos/modules/installer')
-rw-r--r--nixos/modules/installer/tools/tools.nix2
1 files changed, 1 insertions, 1 deletions
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 =