diff --git a/nix/nixos-module/container/upstream/pppoe.nix b/nix/nixos-module/container/upstream/pppoe.nix index 1e3a83b..3b4abd1 100644 --- a/nix/nixos-module/container/upstream/pppoe.nix +++ b/nix/nixos-module/container/upstream/pppoe.nix @@ -16,13 +16,13 @@ in lib.mkIf (pppoeInterfaces != {}) { environment.etc."ppp/pap-secrets".text = lib.concatMapStrings (ifName: let - inherit (pppoeInterfaces.${ifName}) user password; + inherit (pppoeInterfaces.${ifName}.upstream) user password; in '' "${user}" * "${password}" '') (builtins.attrNames pppoeInterfaces); services.pppd = { enable = true; - peers = builtins.mapAttrs (ifName: { upstream, user, ... }: { + peers = builtins.mapAttrs (ifName: { upstream, ... }: { enable = true; autostart = true; config = '' @@ -30,7 +30,7 @@ in lib.mkIf (pppoeInterfaces != {}) { nic-${upstream.link} ifname ${ifName} # Login settings. (PAP) - name "${user}" + name "${upstream.user}" noauth hide-password # Connection settings.