2023-08-08 00:03:49 +02:00
|
|
|
## PPP
|
|
|
|
## ===
|
|
|
|
##
|
|
|
|
## A rudimentary PPPoE (PPP over Ethernet) configuration to address
|
|
|
|
## the case where your Liminix device is connected to an upstream
|
|
|
|
## network using PPPoE. This is typical for UK broadband connections
|
|
|
|
## (except "cable"), and common in some other localities as well: ask
|
|
|
|
## your ISP if this is you.
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|