2023-07-13 20:44:14 +02:00
|
|
|
{ lib, pkgs, config, ...}:
|
|
|
|
let
|
2023-07-14 22:08:33 +02:00
|
|
|
inherit (lib) mkOption types;
|
2023-07-13 20:44:14 +02:00
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
system.service.pppoe = mkOption {
|
2023-07-14 17:53:36 +02:00
|
|
|
type = types.functionTo types.package;
|
2023-07-13 20:44:14 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
config = {
|
2023-07-14 22:33:56 +02:00
|
|
|
system.service.pppoe = pkgs.callPackage ./pppoe.nix {};
|
2023-07-13 20:44:14 +02:00
|
|
|
kernel = {
|
|
|
|
config = {
|
|
|
|
PPP = "y";
|
|
|
|
PPP_BSDCOMP = "y";
|
|
|
|
PPP_DEFLATE = "y";
|
|
|
|
PPP_ASYNC = "y";
|
|
|
|
PPP_SYNC_TTY = "y";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|