stockholm/lass/4lib/default.nix
2015-11-13 00:59:07 +01:00

11 lines
123 B
Nix

{ lib, ... }:
with lib;
{
getDefaultGateway = ip:
concatStringsSep "." (take 3 (splitString "." ip) ++ ["1"]);
}