mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
2e689d58cb
This is appears to be a fairly common mistake for beginners who want to build larger things from the system configurations, such as NixOps networks, etc. Further explanation seems appropriate.
12 lines
329 B
Nix
12 lines
329 B
Nix
{ lib, ... }:
|
|
let
|
|
myconf = lib.evalModules { modules = [ { } ]; };
|
|
in
|
|
{
|
|
imports = [
|
|
# We can't do this. A configuration is not equal to its set of a modules.
|
|
# Equating those would lead to a mess, as specialArgs, anonymous modules
|
|
# that can't be deduplicated, and possibly more come into play.
|
|
myconf
|
|
];
|
|
}
|