nixos-module/server/lxc-containers: shorten coloradio iface names

This commit is contained in:
Astro 2023-06-04 23:02:30 +02:00
parent 8bb6821b87
commit 87cf64653c
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,10 @@ let
shortenNetName = name:
if builtins.match "priv(.*)" name != null
then "p" + builtins.substring 4 9 name
else if name == "coloradio"
then "cr"
else if name == "coloradio-gw"
then "cr-gw"
else name;
checkIfname = ifname: let