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