liminix/modules/ppp/default.nix

23 lines
431 B
Nix
Raw Normal View History

{ lib, pkgs, config, ...}:
let
inherit (lib) mkOption types;
in {
options = {
system.service.pppoe = mkOption {
type = types.functionTo types.package;
};
};
config = {
system.service.pppoe = pkgs.callPackage ./pppoe.nix {};
kernel = {
config = {
PPP = "y";
PPP_BSDCOMP = "y";
PPP_DEFLATE = "y";
PPP_ASYNC = "y";
PPP_SYNC_TTY = "y";
};
};
};
}