mirror of
https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git
synced 2025-09-15 09:45:58 +03:00
switched from networkmanager
to iwd
This commit is contained in:
@@ -3,16 +3,29 @@
|
||||
{
|
||||
# Enable Encrypted DNS
|
||||
networking = {
|
||||
nameservers = [ "127.0.0.1" "::1" ];
|
||||
nameservers = [ "127.0.0.1" "[::1]" ];
|
||||
# If using dhcpcd:
|
||||
dhcpcd.enable = false; # disable, because enabled by default
|
||||
dhcpcd.extraConfig = "nohook resolv.conf";
|
||||
|
||||
# If using NetworkManager:
|
||||
networkmanager.dns = "none";
|
||||
|
||||
# If using resolvconf:
|
||||
resolvconf = {
|
||||
enable = false; # FIXME remember to delete /etc/resolv.conf after applying this config
|
||||
useLocalResolver = true;
|
||||
};
|
||||
|
||||
# If using iwd:
|
||||
wireless.iwd.settings.Network.NameResolvingService = "none";
|
||||
};
|
||||
|
||||
services.dnscrypt-proxy2 = {
|
||||
enable = true;
|
||||
settings = {
|
||||
listen_addresses = [ "127.0.0.1:53" "[::1]:53" ];
|
||||
|
||||
ipv6_servers = true;
|
||||
require_dnssec = true;
|
||||
|
||||
|
@@ -1,13 +1,34 @@
|
||||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable networking
|
||||
networking.hostName = "isitreal-laptop"; # Define your hostname.
|
||||
# Pick only one of the below networking options.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
# networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
# networking.networkmanager.wifi.backend = "iwd";
|
||||
|
||||
networking.wireless.iwd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
General = {
|
||||
EnableNetworkConfiguration = true;
|
||||
};
|
||||
Network = {
|
||||
EnableIPv6 = true;
|
||||
};
|
||||
Scan = {
|
||||
DisablePeriodicScan = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
iwgtk
|
||||
impala
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user