[networkmanager] Improve boot times
This commit is contained in:
parent
414bb4b983
commit
356b1dd991
3 changed files with 19 additions and 5 deletions
|
@ -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";
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./networkmanager
|
||||
./openconnect-sso
|
||||
];
|
||||
}
|
||||
|
|
14
nixos/modules/networking/networkmanager/default.nix
Normal file
14
nixos/modules/networking/networkmanager/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue