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