diff options
author | Karel Kočí <cynerd@email.cz> | 2025-01-19 15:05:04 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2025-01-19 15:05:04 +0100 |
commit | 390c8c66a1b06498382a2d1acef0659eaf6fdae5 (patch) | |
tree | fe38cab5cfba3761d2cf0ca782d14b0f8d836f8d | |
parent | c274720eba80d1434f073d2cafbcd8401d89a40d (diff) | |
download | nixos-personal-390c8c66a1b06498382a2d1acef0659eaf6fdae5.tar.gz nixos-personal-390c8c66a1b06498382a2d1acef0659eaf6fdae5.tar.bz2 nixos-personal-390c8c66a1b06498382a2d1acef0659eaf6fdae5.zip |
nixos: reload pppd when networkd is reloaded
This should fix issue where nixos deploy reloads networkd and that
removes IPv4 address.
-rw-r--r-- | nixos/configurations/adm-omnia.nix | 5 | ||||
-rw-r--r-- | nixos/configurations/spt-omnia.nix | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/nixos/configurations/adm-omnia.nix b/nixos/configurations/adm-omnia.nix index e472432..ebbb35f 100644 --- a/nixos/configurations/adm-omnia.nix +++ b/nixos/configurations/adm-omnia.nix @@ -120,7 +120,10 @@ in { password 02 ''; }; - systemd.services."pppd-wan".after = ["sys-subsystem-net-devices-end2.device"]; + systemd.services."pppd-wan" = { + after = ["sys-subsystem-net-devices-end2.device"]; + partOf = ["systemd-networkd.service"]; + }; # TODO limit NSS clamping to just pppoe-wan networking.firewall.extraForwardRules = '' tcp flags syn tcp option maxseg size set rt mtu comment "Needed for PPPoE to fix IPv4" diff --git a/nixos/configurations/spt-omnia.nix b/nixos/configurations/spt-omnia.nix index f05d553..68437fd 100644 --- a/nixos/configurations/spt-omnia.nix +++ b/nixos/configurations/spt-omnia.nix @@ -121,7 +121,10 @@ in { password metronet ''; }; - systemd.services."pppd-wan".after = ["sys-subsystem-net-devices-end2.848.device"]; + systemd.services."pppd-wan" = { + after = ["sys-subsystem-net-devices-end2.848.device"]; + partOf = ["systemd-networkd.service"]; + }; # TODO limit NSS clamping to just pppoe-wan networking.firewall.extraForwardRules = '' tcp flags syn tcp option maxseg size set rt mtu comment "Needed for PPPoE to fix IPv4" |