summaryrefslogtreecommitdiffstats
path: root/lass/4lib
diff options
context:
space:
mode:
Diffstat (limited to 'lass/4lib')
-rw-r--r--lass/4lib/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/lass/4lib/default.nix b/lass/4lib/default.nix
index 21a083d1a..2e493177d 100644
--- a/lass/4lib/default.nix
+++ b/lass/4lib/default.nix
@@ -17,4 +17,8 @@ krebs // rec {
ln -s ${pkgs.writeScript name content} $out/bin/${name}
'';
};
+
+ getDefaultGateway = ip:
+ concatStringsSep "." (take 3 (splitString "." ip) ++ ["1"]);
+
}