summaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/common.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/common.nix b/pkgs/common.nix
index d6bd9c6..212d1e6 100644
--- a/pkgs/common.nix
+++ b/pkgs/common.nix
@@ -105,6 +105,10 @@ let
};
};
+ # we usually use nix versions as docker image tags, issue is nix versions
+ # have characters which docker does not support. this cleans them up!
+ sanitizeTag = tag: lib.replaceStrings [ "+" "~" ":" ] [ "_" "_" "_" ] tag;
+
soloOrDuoPort =
p:
with builtins;
@@ -142,4 +146,4 @@ let
"${me.tailscale.ip}:${host}:${container}";
};
in
-images // ports
+images // ports // { inherit sanitizeTag; }