liminix-fork/modules/ppp/default.nix
2023-07-14 21:08:33 +01:00

22 lines
429 B
Nix

{ lib, pkgs, config, ...}:
let
inherit (lib) mkOption types;
in {
options = {
system.service.pppoe = mkOption {
type = types.functionTo types.package;
};
};
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";
};
};
};
}