difftreelog
feat prevent restart of NetworkManager during activation
in: trunk
1 file changed
modules/nixos/online.nixdiffbeforeafterboth5}:5}:6let6let7 inherit (lib.options) mkOption;7 inherit (lib.options) mkOption;8 inherit (lib.modules) mkIf mkDefault;8 inherit (lib.types)9 inherit (lib.types)9 attrsOf10 attrsOf10 str11 str81 };82 };82 } // config.system.onlineActivationScripts;83 } // config.system.onlineActivationScripts;8485 config.systemd.services = mkIf config.networking.networkmanager.enable {86 # If machine is managed by fleet, we should not restart NetworkManager during activation,87 # as it will disrupt the activation process. Furthermore, NetworkManager is not declarative,88 # so even if user wants to update his network settings - disabled NetworkManager restart89 # will not affect that.90 NetworkManager.restartIfChanged = mkDefault false;91 };83}92}8493