git.delta.rocks / jrsonnet / refs/commits / b675486b8945

difftreelog

feat prevent restart of NetworkManager during activation

Lach2025-05-24parent: #8fb5fc6.patch.diff
in: trunk

1 file changed

modifiedmodules/nixos/online.nixdiffbeforeafterboth
5}:5}:
6let6let
7 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 attrsOf
10 str11 str
81 };82 };
82 } // config.system.onlineActivationScripts;83 } // config.system.onlineActivationScripts;
84
85 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 restart
89 # will not affect that.
90 NetworkManager.restartIfChanged = mkDefault false;
91 };
83}92}
8493