69e6eb5a89
We use (abuse, arguably) the nixos module system for typechecking. Un the plus side, it gives us documentation of the options and their expected types. On the downside, the error message doesn't tell us the file in which the error was encountered. (This is subject to change, if I can find a better way)
24 lines
547 B
Nix
24 lines
547 B
Nix
{ 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 {
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
}
|