diff --git a/modules/host.nix b/modules/host.nix index ad554bc..a883666 100644 --- a/modules/host.nix +++ b/modules/host.nix @@ -13,6 +13,7 @@ ./host/sound.nix ./host/virtmanager.nix ./host/vpn.nix + ./host/network.nix ]; programs.hyprland.enable = true; @@ -21,5 +22,4 @@ fstrim.enable = true; upower.enable = true; }; - networking.networkmanager.enable = true; } diff --git a/modules/host/network.nix b/modules/host/network.nix new file mode 100644 index 0000000..3c01c09 --- /dev/null +++ b/modules/host/network.nix @@ -0,0 +1,22 @@ +{ + networking = { + enableIPv6 = true; + useDHCP = false; + nameservers = [ "193.222.99.172" "1.1.1.1" ]; + + dhcpcd.extraConfig = "nohook resolv.conf"; + + networkmanager = { + enable = true; + dns = "none"; + insertNameservers = [ "193.222.99.172" "1.1.1.1" ]; + }; + }; + + +# environment.etc."resolv.conf".text = '' +# nameserver 193.222.99.172 +# nameserver 1.1.1.1 +# options edns0 +# ''; +}