2024-12-12 10:48:42 +03:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
util,
|
|
|
|
...
|
|
|
|
}: {
|
2024-11-04 04:37:29 +03:00
|
|
|
networking = {
|
2024-11-29 01:44:48 +03:00
|
|
|
networkmanager = {
|
|
|
|
enable = true;
|
2024-12-12 10:48:42 +03:00
|
|
|
dispatcherScripts = [{
|
|
|
|
source = pkgs.writeText "nm-wb-dispatcher" (util.trimTabs ''
|
|
|
|
${pkgs.procps}/bin/pkill -RTMIN+7 waybar
|
|
|
|
'');
|
|
|
|
}];
|
2024-11-30 14:14:35 +03:00
|
|
|
# unmanaged = [
|
|
|
|
# "type:bridge"
|
|
|
|
# "type:ethernet"
|
|
|
|
# "type:loopback"
|
|
|
|
# # "type:wireguard"
|
|
|
|
# ];
|
2024-11-29 01:44:48 +03:00
|
|
|
};
|
2024-11-04 04:37:29 +03:00
|
|
|
};
|
2024-11-29 04:47:05 +03:00
|
|
|
|
|
|
|
# NOTE: Debugging.
|
|
|
|
# systemd.services."systemd-networkd".environment.SYSTEMD_LOG_LEVEL = "debug";
|
2024-03-04 00:34:39 +03:00
|
|
|
}
|