From f0e3b5ac9f3523a3999dd8d7b5eb9f4c6a0b1c92 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 28 Jul 2026 18:46:35 +0200 Subject: ... --- hosts/vidhar/network/pppoe/default.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'hosts') diff --git a/hosts/vidhar/network/pppoe/default.nix b/hosts/vidhar/network/pppoe/default.nix index 3d652fa8..62a0eec8 100644 --- a/hosts/vidhar/network/pppoe/default.nix +++ b/hosts/vidhar/network/pppoe/default.nix @@ -44,17 +44,19 @@ in { environment.etc."ppp/ip-down".source ]; - serviceConfig.LoadCredential = [ - "password:${config.sops.secrets."o2-password".path}" - ]; + serviceConfig = { + LoadCredential = [ + "password:${config.sops.secrets."o2-password".path}" + ]; + + RestartSec = lib.mkForce "50ms"; + RestartMaxDelaySec = "5s"; + RestartSteps = 4; + StartLimitBurst = 10; + }; bindsTo = [ "sys-subsystem-net-devices-pppoe.device" ]; after = [ "sys-subsystem-net-devices-pppoe.device" ]; - - RestartSec = lib.mkForce "50ms"; - RestartMaxDelaySec = "5s"; - RestartSteps = 4; - StartLimitBurst = 10; }; sops.secrets."o2-password" = { format = "binary"; -- cgit v1.2.3