stockholm/lass/4lib/default.nix
2017-01-17 18:44:08 +01:00

11 lines
127 B
Nix

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