Open ShamrockLee opened 4 months ago
fakedroid
now builds and runs.
The check failure might indicate the need to update the test interface (to supply with the nixpkgs
argument, etc.).
@t184256 Could you give me some hint where the test cases resides and which file is likely to be responsible for injecting the arguments?
This PR demonstrates the possibility to reuse/inherit NixOS macros.
The original Nix-related options and config in the NixOS modules are mostly inside
nixos/modules/services/system/nix-daemon.nix
, making it hard to reuse without also getting those privilege-required part of implementation. The good news is that the configuration-related part has been split out and becomenixos/modules/config/nix.nix
,nixos/modules/config/nix-flakes.nix
,nixos/modules/config/nix-channel.nix
andnixos/modules/config/nix-remote-build.nix
, making it much easier to reuse.This PR first align the behavior of
nix.nix
with the NixOS upstream, and then split outnix-flakes.nix
andnix-channel.nix
. Finally, it imports the upstreamnix.nix
andnix-flakes.nix
to replace the local interface and implementation.