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

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

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

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

8
nm-restart.nix Normal 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;
}

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