11 lines
123 B
Nix
11 lines
123 B
Nix
{ lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
getDefaultGateway = ip:
|
|
concatStringsSep "." (take 3 (splitString "." ip) ++ ["1"]);
|
|
|
|
}
|