liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

default.nix (750B)


      1 ## PPP
      2 ## ===
      3 ##
      4 ## A rudimentary PPPoE (PPP over Ethernet) configuration to address
      5 ## the case where your Liminix device is connected to an upstream
      6 ## network using PPPoE. This is typical for UK broadband connections
      7 ## (except "cable"), and common in some other localities as well: ask
      8 ## your ISP if this is you.
      9 
     10 { lib, pkgs, config, ...}:
     11 let
     12   inherit (lib) mkOption types;
     13 in {
     14   options = {
     15     system.service.pppoe = mkOption {
     16       type = types.functionTo types.package;
     17     };
     18   };
     19   config = {
     20     system.service.pppoe = pkgs.callPackage ./pppoe.nix {};
     21     kernel = {
     22       config = {
     23         PPP = "y";
     24         PPP_BSDCOMP = "y";
     25         PPP_DEFLATE = "y";
     26         PPP_ASYNC = "y";
     27         PPP_SYNC_TTY = "y";
     28       };
     29     };
     30   };
     31 }