From 4fd9b964eb5eb897baa36649eda2ef5ebbc20050 Mon Sep 17 00:00:00 2001 From: Vegard Bieker Matthey Date: Sat, 21 Feb 2026 01:25:53 +0100 Subject: [PATCH] only cross-compile when necessary --- flake.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 6322b6b..5770e0a 100644 --- a/flake.nix +++ b/flake.nix @@ -94,7 +94,6 @@ }: let commonPkgsConfig = { - inherit localSystem crossSystem; config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "nvidia-x11" @@ -104,8 +103,11 @@ # Global overlays go here inputs.roowho2.overlays.default ]) ++ overlays; - }; - + } // (if localSystem != crossSystem then { + inherit localSystem crossSystem; + } else { + system = crossSystem; + }); pkgs = import nixpkgs commonPkgsConfig; unstablePkgs = import nixpkgs-unstable commonPkgsConfig; in