liminix

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

commit c13defc8918f5517c002410763e91e4f09df1ba7
parent 682183a88d8f7bc31b6172da9efa07f1f385928d
Author: Daniel Barlow <dan@telent.net>
Date:   Fri, 14 Jul 2023 21:08:33 +0100

rename modules/ppp.nix -> modules/ppp/default.nix

Diffstat:
Mexamples/rotuer.nix | 2+-
Dmodules/ppp.nix | 24------------------------
Amodules/ppp/default.nix | 22++++++++++++++++++++++
3 files changed, 23 insertions(+), 25 deletions(-)

diff --git a/examples/rotuer.nix b/examples/rotuer.nix @@ -34,7 +34,7 @@ in rec { imports = [ ../modules/wlan.nix ../modules/standard.nix - ../modules/ppp.nix + ../modules/ppp ]; rootfsType = "jffs2"; hostname = "rotuer"; diff --git a/modules/ppp.nix b/modules/ppp.nix @@ -1,24 +0,0 @@ -{ 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"; - }; - }; - }; -} diff --git a/modules/ppp/default.nix b/modules/ppp/default.nix @@ -0,0 +1,22 @@ +{ lib, pkgs, config, ...}: +let + inherit (lib) mkOption types; +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"; + }; + }; + }; +}