The ${opt.*} syntax will print the full path when NixOS is used as a submodule. nixpkgs.system / nixpkgs.localSystem must not be read by any other module because its meaning is ambiguous in cross vs non-cross contexts. hostPlatform is generally what you need. *Where* you build something generally doesn't matter in a system _configuration_ context like NixOS. |
||
---|---|---|
.. | ||
doc | ||
lib | ||
maintainers | ||
modules | ||
tests | ||
COPYING | ||
default.nix | ||
README | ||
release-combined.nix | ||
release-small.nix | ||
release.nix |
*** NixOS *** NixOS is a Linux distribution based on the purely functional package management system Nix. More information can be found at https://nixos.org/nixos and in the manual in doc/manual.