harcode paths for kpppoed, add port num in config

This commit is contained in:
Daniel Barlow
2023-02-17 00:09:02 +00:00
parent 40739d780b
commit 05576eeb94
3 changed files with 12 additions and 2 deletions

View File

@@ -9,13 +9,14 @@
systemd.services.pppoe =
let conf = pkgs.writeText "kpppoed.toml"
''
interface_name = "eth0"
interface_name = "eth1"
services = [ "myservice" ]
lns_ipaddr = "90.155.53.19"
lns_ipaddr = "90.155.53.19:1701"
ac_name = "kpppoed-1.0"
'';
in {
wantedBy = [ "multi-user.target" ];
after = [ "network-online.target" ];
serviceConfig = {
ExecStart = "${pkgs.go-l2tp}/bin/kpppoed -config ${conf}";
};