Extra network-manager restartIfChanged logic.

This commit is contained in:
Gabriel Ebner 2021-06-24 10:45:45 +02:00
parent 7846a0da2d
commit 393a699de3
5 changed files with 12 additions and 6 deletions

View File

@ -16,6 +16,7 @@
./huion.nix ./huion.nix
./rtl8761b.nix ./rtl8761b.nix
./unstable-nix.nix ./unstable-nix.nix
./nm-restart.nix
]; ];
environment.etc."lvm/lvm.conf".text = '' environment.etc."lvm/lvm.conf".text = ''

View File

@ -12,6 +12,7 @@
./v4l2loopback.nix ./v4l2loopback.nix
./huion.nix ./huion.nix
./nvim05.nix ./nvim05.nix
./nm-restart.nix
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
@ -112,6 +113,4 @@
subpixel.rgba = "none"; subpixel.rgba = "none";
}; };
systemd.services.NetworkManager.restartIfChanged = false;
systemd.services.NetworkManager-dispatcher.restartIfChanged = false;
} }

View File

@ -15,6 +15,7 @@
./huion.nix ./huion.nix
./spacenav.nix ./spacenav.nix
./nvim05.nix ./nvim05.nix
./nm-restart.nix
]; ];
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;

8
nm-restart.nix Normal file
View File

@ -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;
}

View File

@ -13,6 +13,7 @@
./v4l2loopback.nix ./v4l2loopback.nix
./huion.nix ./huion.nix
./nvim05.nix ./nvim05.nix
./nm-restart.nix
]; ];
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
@ -155,8 +156,4 @@
services.fwupd.enable = true; services.fwupd.enable = true;
systemd.services.NetworkManager.restartIfChanged = false;
systemd.services.NetworkManager-dispatcher.restartIfChanged = false;
systemd.services.wpa_supplicant.restartIfChanged = false;
} }