stockholm/lass/4lib/default.nix
2016-05-31 23:36:07 +02:00

11 lines
127 B
Nix

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