50 lines
960 B
Nix
50 lines
960 B
Nix
{ ... }:
|
|
{
|
|
_class = "clan.service";
|
|
manifest.name = "gw-router";
|
|
manifest.description = "A gateway router service to configure most of a router features";
|
|
manifest.readme = "A gateway router service to configure most of a router features";
|
|
manifest.categories = [ "System" ];
|
|
|
|
roles.default = {
|
|
description = "A default role for the router node";
|
|
|
|
interface =
|
|
{ lib, config, ... }:
|
|
{
|
|
options = {
|
|
|
|
};
|
|
};
|
|
|
|
perInstance =
|
|
{ settings, ... }:
|
|
{
|
|
nixosModule =
|
|
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
in
|
|
{
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
tcpdump
|
|
mtr
|
|
ethtool
|
|
conntrack-tools
|
|
knot-dns
|
|
iftop
|
|
librespeed-cli
|
|
];
|
|
|
|
};
|
|
};
|
|
};
|
|
|
|
imports = [ ./pppoe.nix ];
|
|
}
|