From 2790dd8153bc1bda30258adae3b3353a31d9c28c Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Thu, 11 Apr 2024 13:55:00 -0700 Subject: [PATCH] Set a default host platform A nixos config only needs a few things set in order to build correctly, `nixpkgs.hostPlatform` being one of them. In the case of jetson devices, we can at least provide a default value for this that gets people up and running with one less thing to set. --- modules/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/default.nix b/modules/default.nix index 617f243f..fa34d0c1 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -91,6 +91,8 @@ in message = "Docker version < 25 does not support CDI"; }]; + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; + nixpkgs.overlays = [ (import ../overlay.nix) ];