{ pkgs, lib, config, hostName, True, False, ... }: with lib; let cfg = config.module.hardware.network; in { options = { module.hardware.network = { enable = mkEnableOption ""; }; }; config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ networkmanagerapplet networkmanager-l2tp pptp ]; networking = { # FOR NETWORK hostName = hostName; networkmanager = True // { insertNameservers = [ "1.1.1.1" "1.0.0.1" ]; dns = "systemd-resolved"; wifi = { powersave = true; macAddress = "random"; backend = "iwd"; }; }; useDHCP = mkDefault true; nftables = True; }; services = { resolved = True; pptpd = True; }; systemd.services = { # IDK NetworkManager-wait-online = False; systemd-networkd-wait-online = mkForce False; }; }; }