at 24.11-pre 590 B view raw
1import ./make-test-python.nix ({ pkgs, ... }: 2{ 3 name = "nix-config"; 4 nodes.machine = { pkgs, ... }: { 5 nix.settings = { 6 nix-path = [ "nonextra=/etc/value.nix" ]; 7 extra-nix-path = [ "extra=/etc/value.nix" ]; 8 }; 9 environment.etc."value.nix".text = "42"; 10 }; 11 testScript = '' 12 start_all() 13 machine.wait_for_unit("nix-daemon.socket") 14 # regression test for the workaround for https://github.com/NixOS/nix/issues/9487 15 print(machine.succeed("nix-instantiate --find-file extra")) 16 print(machine.succeed("nix-instantiate --find-file nonextra")) 17 ''; 18})