19 lines
445 B
Nix
19 lines
445 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
networking.localCommands = ''
|
|
ip -6 route add default via 2a01:4f8:1c0c:8221::25 dev net-services table 20003
|
|
'';
|
|
|
|
clerie.policyrouting.enable = true;
|
|
clerie.policyrouting.rules6 = [
|
|
{ rule = "from 2a01:4f8:1c0c:8221::/64 lookup 20003"; prio = 19000; }
|
|
];
|
|
|
|
clerie.uplink-selector.enable = true;
|
|
clerie.uplink-selector.uplinks = {
|
|
uplink-a.table = "20001";
|
|
uplink-b.table = "20002";
|
|
};
|
|
}
|