Skip to content

Commit

Permalink
Set a default host platform
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jmbaur authored and danielfullmer committed May 7, 2024
1 parent f89a419 commit 2790dd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ in
message = "Docker version < 25 does not support CDI";
}];

nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";

nixpkgs.overlays = [
(import ../overlay.nix)
];
Expand Down

0 comments on commit 2790dd8

Please sign in to comment.