2023-08-07 23:03:49 +01: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 19:44:14 +01:00
|
|
|
{ lib, pkgs, config, ...}:
|
|
|
|
let
|
2023-07-14 21:08:33 +01:00
|
|
|
inherit (lib) mkOption types;
|
2023-07-13 19:44:14 +01:00
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
system.service.pppoe = mkOption {
|
2023-07-14 16:53:36 +01:00
|
|
|
type = types.functionTo types.package;
|
2023-07-13 19:44:14 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
config = {
|
2023-07-14 21:33:56 +01:00
|
|
|
system.service.pppoe = pkgs.callPackage ./pppoe.nix {};
|
2023-07-13 19:44:14 +01:00
|
|
|
kernel = {
|
|
|
|
config = {
|
|
|
|
PPP = "y";
|
|
|
|
PPP_BSDCOMP = "y";
|
|
|
|
PPP_DEFLATE = "y";
|
|
|
|
PPP_ASYNC = "y";
|
|
|
|
PPP_SYNC_TTY = "y";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|