From 6a38d4af6523aa9e5331839c231919b146812ee5 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Wed, 11 Sep 2024 09:01:41 -0700 Subject: Add workaround for WAN interface not restarting correctly --- hosts/darkstar/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'hosts') diff --git a/hosts/darkstar/default.nix b/hosts/darkstar/default.nix index 5ceb0a6..e5fd41c 100644 --- a/hosts/darkstar/default.nix +++ b/hosts/darkstar/default.nix @@ -90,6 +90,14 @@ }; }; + # this is to workaround the WAN interface not always coming up after certain rebuilds: + # https://github.com/NixOS/nixpkgs/issues/198267 and https://github.com/NixOS/nixpkgs/issues/195777 + system.activationScripts = { + restart-udev = '' + ${pkgs.systemd}/bin/systemctl restart systemd-udev-trigger.service + ''; + }; + system.stateVersion = "23.11"; systemd.services."nftables-extra" = { -- cgit v1.2.3