nixpkgs/nixos
aszlig 9b6f9e4624
nixos/tests/taskserver: Fix build
The test fails because the way the configuration switch was implemented
back then was by using a dummy configuration and simply activating that
dummy configuration from within the test script.

Nowadays, this doesn't work anymore and fails to typecheck because the
dummy "newServer" will inherit the same value for networking.hostName,
which in turn will generate two attributes for "server":

  > testScriptWithTypes:43: error: Name "server" already defined on line 43
  > [no-redef]
  >     client1: Machine; client2: Machine; server: Machine; server: Machine;

Fortunately, we don't need to do workarounds like this anymore and there
is the "specialisation" option, which allows to do this in a less ugly
way (and it also works with mypy).

Signed-off-by: aszlig <aszlig@nix.build>
2023-06-04 23:14:07 +02:00
..
doc/manual Merge pull request #235954 from wegank/nerdfonts-release-notes 2023-06-04 16:12:56 -04:00
lib nixos/test-driver: fix formatting 2023-05-28 12:29:26 +00:00
maintainers maintainers/scripts: fix typos 2023-05-19 22:31:04 -04:00
modules nixos/public-inbox: explicit a few more freeform settings 2023-06-04 13:09:28 +00:00
tests nixos/tests/taskserver: Fix build 2023-06-04 23:14:07 +02:00
COPYING
default.nix
README
release-combined.nix nixos/release-*: finish dropping the conntrack tests 2023-03-04 09:28:09 +01:00
release-small.nix Merge pull request #209870 from amjoseph-nixpkgs/pr/stdenv/external-gcc-bootstrap 2023-04-03 08:19:03 -07:00
release.nix nixos/release: add deepin closure 2023-05-08 18:25:41 +08:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.