From 024600b390a1f2be546404ea87b9f3e9321a15b4 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 14 Aug 2024 03:40:36 +0200 Subject: [PATCH] nixos/taskserver: fix test eval Error was: ``` error: Failed assertions: - Specialisation names can only contain alphanumeric characters and underscores Invalid specialisation names: manual-config ``` Using nix (Lix, like Nix) 2.90.0 --- nixos/tests/taskserver.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/taskserver.nix b/nixos/tests/taskserver.nix index 254bc8822f89..83f41a010661 100644 --- a/nixos/tests/taskserver.nix +++ b/nixos/tests/taskserver.nix @@ -70,7 +70,7 @@ in { anotherOrganisation.users = [ "bob" ]; }; - specialisation.manual-config.configuration = { + specialisation.manual_config.configuration = { services.taskserver.pki.manual = { ca.cert = snakeOil.cacert; server.cert = snakeOil.cert; @@ -95,7 +95,7 @@ in { cfg = nodes.server.config.services.taskserver; portStr = toString cfg.listenPort; specialisations = "${nodes.server.system.build.toplevel}/specialisation"; - newServerSystem = "${specialisations}/manual-config"; + newServerSystem = "${specialisations}/manual_config"; switchToNewServer = "${newServerSystem}/bin/switch-to-configuration test"; in '' from shlex import quote