diff options
Diffstat (limited to 'hosts/vidhar/network/pppoe/default.nix')
| -rw-r--r-- | hosts/vidhar/network/pppoe/default.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/hosts/vidhar/network/pppoe/default.nix b/hosts/vidhar/network/pppoe/default.nix index 62a0eec8..2ada4577 100644 --- a/hosts/vidhar/network/pppoe/default.nix +++ b/hosts/vidhar/network/pppoe/default.nix | |||
| @@ -53,6 +53,8 @@ in { | |||
| 53 | RestartMaxDelaySec = "5s"; | 53 | RestartMaxDelaySec = "5s"; |
| 54 | RestartSteps = 4; | 54 | RestartSteps = 4; |
| 55 | StartLimitBurst = 10; | 55 | StartLimitBurst = 10; |
| 56 | |||
| 57 | ProtectHome = lib.mkForce "tmpfs"; | ||
| 56 | }; | 58 | }; |
| 57 | 59 | ||
| 58 | bindsTo = [ "sys-subsystem-net-devices-pppoe.device" ]; | 60 | bindsTo = [ "sys-subsystem-net-devices-pppoe.device" ]; |
| @@ -80,9 +82,12 @@ in { | |||
| 80 | debug | 82 | debug |
| 81 | +ipv6 | 83 | +ipv6 |
| 82 | ''; | 84 | ''; |
| 83 | "ppp/pap-secrets".text = '' | 85 | "ppp/pap-secrets" = { |
| 84 | DSL0004874856014@s93.bbi-o2.de * @/run/credentials/pppd-o2.service/password * | 86 | mode = "0400"; |
| 85 | ''; | 87 | text = '' |
| 88 | DSL0004874856014@s93.bbi-o2.de * @/run/credentials/pppd-o2.service/password * | ||
| 89 | ''; | ||
| 90 | }; | ||
| 86 | "ppp/ip-pre-up".source = pkgs.resholve.writeScript "ip-pre-up" { | 91 | "ppp/ip-pre-up".source = pkgs.resholve.writeScript "ip-pre-up" { |
| 87 | interpreter = pkgs.runtimeShell; | 92 | interpreter = pkgs.runtimeShell; |
| 88 | inputs = [ pkgs.iproute2 pkgs.ethtool ]; | 93 | inputs = [ pkgs.iproute2 pkgs.ethtool ]; |
