summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--modules/by-name/ba/back/module.nix2
-rw-r--r--tests/by-name/ba/back/test.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/by-name/ba/back/module.nix b/modules/by-name/ba/back/module.nix
index f732f02..2bc5159 100644
--- a/modules/by-name/ba/back/module.nix
+++ b/modules/by-name/ba/back/module.nix
@@ -63,7 +63,7 @@
 
   services =
     lib.mapAttrs' (gitPath: config: {
-      name = builtins.replaceStrings ["/"] ["_"] "back-${gitPath}-${config.domain}";
+      name = builtins.replaceStrings ["/"] ["_"] "back-${config.domain}";
       value = mkUnit gitPath config.port;
     })
     cfg.repositories;
diff --git a/tests/by-name/ba/back/test.nix b/tests/by-name/ba/back/test.nix
index 220d100..63f2837 100644
--- a/tests/by-name/ba/back/test.nix
+++ b/tests/by-name/ba/back/test.nix
@@ -104,7 +104,7 @@ in
       ''}")
 
       with subtest("back server starts"):
-        server.wait_for_unit("${builtins.replaceStrings ["/"] ["_"] "back-${gitRepoPath}-${domain}.service"}")
+        server.wait_for_unit("${builtins.replaceStrings ["/"] ["_"] "back-${domain}.service"}")
 
       with subtest("client can access the server"):
         client.succeed("${pkgs.writeShellScript "curl-back" ''