2016-05-31 21:26:35 +00:00
|
|
|
{ lib, ... }:
|
2015-08-28 14:30:36 +00:00
|
|
|
|
2015-10-21 00:23:57 +00:00
|
|
|
with lib;
|
2015-08-28 14:30:36 +00:00
|
|
|
|
2016-04-09 12:21:19 +00:00
|
|
|
rec {
|
2015-08-28 14:30:36 +00:00
|
|
|
|
2015-09-18 01:00:29 +00:00
|
|
|
getDefaultGateway = ip:
|
|
|
|
concatStringsSep "." (take 3 (splitString "." ip) ++ ["1"]);
|
|
|
|
|
2015-08-28 14:30:36 +00:00
|
|
|
}
|