From 7eb332af5d6e4ed76030f84d68bb62eaca7fdac2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 19 Jun 2019 12:12:42 +0200 Subject: [PATCH] Remove default value for nixpkgs.system Using "builtins.currentSystem" doesn't work in pure evaluation mode, and even when it's explicitly set (which it always is, in nixos/lib/eval-config.nix), it breaks manual generation because the manual tries to render the default value. --- nixos/modules/misc/nixpkgs.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/nixos/modules/misc/nixpkgs.nix b/nixos/modules/misc/nixpkgs.nix index 9d19dd2a7ff2..e0c192246c0c 100644 --- a/nixos/modules/misc/nixpkgs.nix +++ b/nixos/modules/misc/nixpkgs.nix @@ -196,7 +196,6 @@ in system = mkOption { type = types.str; example = "i686-linux"; - default = { system = builtins.currentSystem; }; description = '' Specifies the Nix platform type on which NixOS should be built. It is better to specify nixpkgs.localSystem instead.