nixpkgs/nixos/doc/manual/development
Felix Stupp 61fd315b42
nixos/manual: add hint to interactive testing about Internet access
verified with following minimal test, embedded in a flake for ease of
execution:
```nix
{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/master";
  outputs = { nixpkgs, ... }:
    let
      pkgs = import nixpkgs { system = "x86_64-linux"; };
    in
    {
      nixosTests.x86_64-linux.internet = pkgs.nixosTest {
        name = "internet";
        nodes.machine = { };
        # only succeeds in interactive mode
        testScript = ''
          machine.wait_for_unit("default.target")
          print(machine.succeed("curl -4 https://nixos.org"))
        '';
      };
    };
}
```

Launch this test interactively as described in the manual & run
`test_script()` to verify that the VM has Internet access.
2024-08-31 14:40:14 +00:00
..
activation-script.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
assertions.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
bootspec.chapter.md nixos/activation/bootspec: fix style 2024-06-05 11:14:36 +08:00
building-parts.chapter.md
developing-the-test-driver.chapter.md
development.md
etc-overlay.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
freeform-modules.section.md
importing-modules.section.md
linking-nixos-tests-to-packages.section.md
meta-attributes.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
nixos-tests.chapter.md
non-switchable-systems.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
option-declarations.section.md nixos/doc: fix a typo in option-declarations.section.md (#304733) 2024-05-18 13:06:50 +08:00
option-def.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
option-types.section.md Merge pull request #284551 from hercules-ci/types-attrTag 2024-04-09 20:48:44 +02:00
replace-modules.section.md Remove top level with lib; in docs (#293829) 2024-03-06 22:35:43 +01:00
running-nixos-tests-interactively.section.md nixos/manual: add hint to interactive testing about Internet access 2024-08-31 14:40:14 +00:00
running-nixos-tests.section.md nixos/doc/running-nixos-tests: Describe system requirements 2024-03-05 20:51:10 +01:00
settings-options.section.md pkgs: add PHP to formats.nix 2024-05-16 13:07:34 +03:00
sources.chapter.md
testing-installer.chapter.md
unit-handling.section.md treewide: fix doc typos 2024-07-26 00:55:13 +02:00
what-happens-during-a-system-switch.chapter.md
writing-documentation.chapter.md
writing-modules.chapter.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
writing-nixos-tests.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00