2023-07-13 20:44:14 +02:00
|
|
|
{ lib, pkgs, config, ...}:
|
|
|
|
let
|
|
|
|
inherit (lib) mkEnableOption mkOption types isDerivation hasAttr ;
|
|
|
|
inherit (pkgs.pseudofile) dir symlink;
|
|
|
|
inherit (pkgs) stdenv wireless-regdb;
|
|
|
|
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 = {
|
|
|
|
system.service.pppoe = pkgs.liminix.networking.pppoe;
|
|
|
|
kernel = {
|
|
|
|
config = {
|
|
|
|
PPP = "y";
|
|
|
|
PPP_BSDCOMP = "y";
|
|
|
|
PPP_DEFLATE = "y";
|
|
|
|
PPP_ASYNC = "y";
|
|
|
|
PPP_SYNC_TTY = "y";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|