From 393a699de37a6a71afb793c11543d79256059fba Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Thu, 24 Jun 2021 10:45:45 +0200 Subject: [PATCH] Extra network-manager restartIfChanged logic. --- archachatina.nix | 1 + decoysnail.nix | 3 +-- flammea.nix | 1 + nm-restart.nix | 8 ++++++++ petalius.nix | 5 +---- 5 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 nm-restart.nix diff --git a/archachatina.nix b/archachatina.nix index 026dcda..4284150 100644 --- a/archachatina.nix +++ b/archachatina.nix @@ -16,6 +16,7 @@ ./huion.nix ./rtl8761b.nix ./unstable-nix.nix + ./nm-restart.nix ]; environment.etc."lvm/lvm.conf".text = '' diff --git a/decoysnail.nix b/decoysnail.nix index ee91b62..f0d4683 100644 --- a/decoysnail.nix +++ b/decoysnail.nix @@ -12,6 +12,7 @@ ./v4l2loopback.nix ./huion.nix ./nvim05.nix + ./nm-restart.nix ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; @@ -112,6 +113,4 @@ subpixel.rgba = "none"; }; - systemd.services.NetworkManager.restartIfChanged = false; - systemd.services.NetworkManager-dispatcher.restartIfChanged = false; } diff --git a/flammea.nix b/flammea.nix index dc32589..0e33a34 100644 --- a/flammea.nix +++ b/flammea.nix @@ -15,6 +15,7 @@ ./huion.nix ./spacenav.nix ./nvim05.nix + ./nm-restart.nix ]; hardware.enableRedistributableFirmware = true; diff --git a/nm-restart.nix b/nm-restart.nix new file mode 100644 index 0000000..b8b1102 --- /dev/null +++ b/nm-restart.nix @@ -0,0 +1,8 @@ +{ ... }: + +{ + systemd.services.NetworkManager.restartIfChanged = false; + systemd.services.NetworkManager-dispatcher.restartIfChanged = false; + systemd.services.NetworkManager-wait-online.restartIfChanged = false; + systemd.services.wpa_supplicant.restartIfChanged = false; +} diff --git a/petalius.nix b/petalius.nix index 5d41b4e..0a0af70 100644 --- a/petalius.nix +++ b/petalius.nix @@ -13,6 +13,7 @@ ./v4l2loopback.nix ./huion.nix ./nvim05.nix + ./nm-restart.nix ]; hardware.enableRedistributableFirmware = true; @@ -155,8 +156,4 @@ services.fwupd.enable = true; - systemd.services.NetworkManager.restartIfChanged = false; - systemd.services.NetworkManager-dispatcher.restartIfChanged = false; - systemd.services.wpa_supplicant.restartIfChanged = false; - }