Loading
nixos-rebuild-ng: add support for system.nix
- Support loading a system.nix from the cwd if --attr is used or when --file points to a directory. default.nix is still supported, but system.nix should be preferred to avoid loading files unrelated to NixOS systems - Introduce a system-wide <nixos-system> file, defaulting to /etc/nixos/system.nix, which is loaded even if neither --file nor --attr are used These changes allow to build a completely self-contained system configuration (NIX_PATH can be empty) with just `nixos-rebuild`, similarly to flakes.