summary refs log tree commit diff
path: root/nixos/modules/installer/tools/nixos-generate-config.pl
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2014-11-17 17:11:05 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2014-11-17 17:13:36 +0100
commit8835d932b1572d7918f30f778a554dbd7731f4fd (patch)
treef4ff9eb3942eb5b89373c5d204e71468a6145cc9 /nixos/modules/installer/tools/nixos-generate-config.pl
parenta7ea8bea2614d602cb2f30188534e100b9f36e65 (diff)
downloadnixpkgs-8835d932b1572d7918f30f778a554dbd7731f4fd.tar
nixpkgs-8835d932b1572d7918f30f778a554dbd7731f4fd.tar.gz
nixpkgs-8835d932b1572d7918f30f778a554dbd7731f4fd.tar.bz2
nixpkgs-8835d932b1572d7918f30f778a554dbd7731f4fd.tar.lz
nixpkgs-8835d932b1572d7918f30f778a554dbd7731f4fd.tar.xz
nixpkgs-8835d932b1572d7918f30f778a554dbd7731f4fd.tar.zst
nixpkgs-8835d932b1572d7918f30f778a554dbd7731f4fd.zip
nixos-generate-config: add 'lib' to module template
The NixOS manual says modules have the following signature:
 { config, lib, pkgs, ... }:

But our generated configuration.nix file lacks the 'lib' part. Add it.
Diffstat (limited to 'nixos/modules/installer/tools/nixos-generate-config.pl')
-rw-r--r--nixos/modules/installer/tools/nixos-generate-config.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl
index 9abc1b4cc1b..7178c4b1dfb 100644
--- a/nixos/modules/installer/tools/nixos-generate-config.pl
+++ b/nixos/modules/installer/tools/nixos-generate-config.pl
@@ -430,7 +430,7 @@ my $hwConfig = <<EOF;
 # Do not modify this file!  It was generated by ‘nixos-generate-config’
 # and may be overwritten by future invocations.  Please make changes
 # to /etc/nixos/configuration.nix instead.
-{ config, pkgs, ... }:
+{ config, lib, pkgs, ... }:
 
 {
   imports =${\multiLineList("    ", @imports)};