# SPDX-FileCopyrightText: 2024 Ryan Lahfa # # SPDX-License-Identifier: EUPL-1.2 { config, ... }: let svc = config.system.service; # FIXME switch to ipv6 tu be able to scale adminIp = "10.0.253.253"; in { services.admin-ip = svc.network.address.build { interface = config.services.admin-vlan; address = adminIp; prefixLength = 24; family = "inet"; }; services.admin-defaultroute4 = svc.network.route.build { via = "10.0.253.1"; target = "default"; dependencies = [ config.services.admin-ip ]; }; }