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