summaryrefslogtreecommitdiffstats
path: root/lass/4lib/default.nix
blob: a751a29958d4c27f513d9e5b621e9e95ee2357e6 (plain)
1
2
3
4
5
6
7
8
9
10
{ lib, ... }:

with lib;

{

  getDefaultGateway = ip:
    concatStringsSep "." (take 3 (splitString "." ip) ++ ["1"]);

}