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