1 { config, lib, pkgs, ... }:
3 cfg = config.networking.iproute2;
6 options.networking.iproute2 = {
7 enable = lib.mkEnableOption "copying IP route configuration files";
8 rttablesExtraConfig = lib.mkOption {
9 type = lib.types.lines;
12 Verbatim lines to add to /etc/iproute2/rt_tables
17 config = lib.mkIf cfg.enable {
18 environment.etc."iproute2/rt_tables.d/nixos.conf" = {
20 text = cfg.rttablesExtraConfig;