aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2025-01-19 15:05:04 +0100
committerKarel Kočí <cynerd@email.cz>2025-01-19 15:05:04 +0100
commit390c8c66a1b06498382a2d1acef0659eaf6fdae5 (patch)
treefe38cab5cfba3761d2cf0ca782d14b0f8d836f8d
parentc274720eba80d1434f073d2cafbcd8401d89a40d (diff)
downloadnixos-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.nix5
-rw-r--r--nixos/configurations/spt-omnia.nix5
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"