[networkmanager] Improve boot times

This commit is contained in:
Tibo De Peuter 2023-11-24 19:15:25 +01:00
parent 414bb4b983
commit 356b1dd991
3 changed files with 19 additions and 5 deletions

View file

@ -11,7 +11,10 @@
model = "Quadro T2000";
};
networking.openconnect-sso.enable = true;
networking = {
networkmanager.enable = true;
openconnect-sso.enable = true;
};
nix = {
flakes.enable = true;
@ -102,10 +105,6 @@
# --- Barrier ---
networking = {
networkmanager.enable = true;
};
i18n.defaultLocale = "en_GB.UTF-8";
console = {
# font = "Lat2-Terminus16";

View file

@ -1,5 +1,6 @@
{
imports = [
./networkmanager
./openconnect-sso
];
}

View file

@ -0,0 +1,14 @@
{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.networking.networkmanager;
in {
options.sisyphus.networking.networkmanager.enable = lib.mkEnableOption "NetworkManager";
config = lib.mkIf cfg.enable {
networking.networkmanager.enable = true;
# Prevent slow boot times
systemd.services.NetworkManager-wait-online.enable = false;
};
}