You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
549 B
Nix

{ config, lib, ... }:
let
cfg = config.x-banananetwork.improvedDefaults;
nmEn = config.networking.networkmanager.enable;
waitOnlineEn = config.systemd.network.wait-online.enable;
in
{
config = lib.mkIf cfg.enable {
systemd.network.wait-online.enable = lib.mkIf nmEn (lib.mkDefault false);
warnings = lib.singleton (
lib.mkIf (nmEn && waitOnlineEn) ''
systemd-networkd-wait-online is in most cases useless on systems primarily using NetworkManager & it may increase boot times if it just fails
''
);
};
}