From 87cf64653c0ce8ac1e712b6700ba4e2b6cd0fe04 Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 4 Jun 2023 23:02:30 +0200 Subject: [PATCH] nixos-module/server/lxc-containers: shorten coloradio iface names --- nix/nixos-module/server/lxc-containers.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/nixos-module/server/lxc-containers.nix b/nix/nixos-module/server/lxc-containers.nix index a7cd177..7d15833 100644 --- a/nix/nixos-module/server/lxc-containers.nix +++ b/nix/nixos-module/server/lxc-containers.nix @@ -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