# Recommended style to cross-compile flake nixosSystems

**URL:** https://discourse.nixos.org/t/recommended-style-to-cross-compile-flake-nixossystems/45305
**Category:** Help
**Created:** [May 12, 2024, 5:30pm UTC](https://discourse.nixos.org/t/recommended-style-to-cross-compile-flake-nixossystems/45305 "2024-05-12T17:30:07Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![waffle8946](https://discourse.nixos.org/user_avatar/discourse.nixos.org/waffle8946/32/27221_2.png) [@waffle8946](https://discourse.nixos.org/u/waffle8946)
#### Post date: [March 5, 2025, 9:32pm UTC](https://discourse.nixos.org/t/recommended-style-to-cross-compile-flake-nixossystems/45305/16 "2025-03-05T21:32:33Z")

</div>

@endimi @malteneuss I suggest sticking with method 1, as passing `system` to `lib.nixosSystem` is deprecated.

---

_[View the full topic](https://discourse.nixos.org/t/recommended-style-to-cross-compile-flake-nixossystems/45305)._
