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

with lib;

rec {

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

}