Merge pull request #38485 from obsidiansystems/nixos-nixpkgs-options

nixpkgs module: Clean up platform options
This commit is contained in:
John Ericson
2018-04-19 14:59:58 -04:00
committed by GitHub
8 changed files with 67 additions and 26 deletions
+2 -2
View File
@@ -112,7 +112,7 @@ let
# If the host is 64-bit and the container is 32-bit, add a
# --personality flag.
${optionalString (config.nixpkgs.system == "x86_64-linux") ''
${optionalString (config.nixpkgs.localSystem.system == "x86_64-linux") ''
if [ "$(< ''${SYSTEM_PATH:-/nix/var/nix/profiles/per-container/$INSTANCE/system}/system)" = i686-linux ]; then
extraFlags+=" --personality=x86"
fi
@@ -255,7 +255,7 @@ let
};
system = config.nixpkgs.system;
system = config.nixpkgs.localSystem.system;
bindMountOpts = { name, config, ... }: {