lib: Collect system/platform related files

Previously, platforms was a random thing in top-level
This commit is contained in:
John Ericson
2017-04-17 17:13:01 -04:00
parent b477851f34
commit 2227789392
8 changed files with 18 additions and 12 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ in let
# Allow setting the platform in the config file. Otherwise, let's use a
# reasonable default.
localSystem =
{ platform = (import ./platforms.nix).selectPlatformBySystem args.localSystem.system; }
{ platform = lib.systems.platforms.selectPlatformBySystem args.localSystem.system; }
// builtins.intersectAttrs { platform = null; } config
// args.localSystem;