uiua{,-unstable}: use lib.fix to reference self, rename unstable flag to uiua_version...
[NixPkgs.git] / nixos / tests / nix-config.nix
blob18fa3ae347aa8df1e635b817784a1e3b9065c32c
1 import ./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   }