diff --git a/flake.lock b/flake.lock index ed91b3c..040c2a6 100644 --- a/flake.lock +++ b/flake.lock @@ -594,11 +594,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1744098102, - "narHash": "sha256-tzCdyIJj9AjysC3OuKA+tMD/kDEDAF9mICPDU7ix0JA=", + "lastModified": 1744932701, + "narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "c8cd81426f45942bb2906d5ed2fe21d2f19d95b7", + "rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef", "type": "github" }, "original": { diff --git a/hosts/default.nix b/hosts/default.nix index 7a34711..820c9b6 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -27,17 +27,17 @@ inputs: let modules = concatLists [ # This is used to pre-emptively set the hostPlatform for nixpkgs. # Also, we set the system hostname here. - [ - # self.nixosModules.user - ] (singleton { networking.hostName = hostname; nixpkgs.hostPlatform = system; }) (flatten ( concatLists [ + # configuration for the host, passed as an argument. (singleton ./${hostname}/default.nix) + # common configuration, which all hosts share. (singleton ./common.nix) + # Import all files called module.nix from my modules directory. ( filter (hasSuffix "module.nix") ( map toString (listFilesRecursive ../modules) diff --git a/modules/system/os/networking/module.nix b/modules/system/os/networking/module.nix index fd4ca78..dd7b01c 100644 --- a/modules/system/os/networking/module.nix +++ b/modules/system/os/networking/module.nix @@ -6,6 +6,17 @@ in { ]; networking = { enableIPv6 = true; + + # INFO: This disables wpa_supplicant, + # I use nenetworkmanager instead. + wireless.enable = false; + + dhcpcd = { + # faster boot times + wait = "background"; + extraConfig = "noarp"; + }; + nameservers = [ # quad9 DNS "9.9.9.9" @@ -14,8 +25,16 @@ in { }; services.resolved = { enable = true; + dnssec = "false"; # quad9 dns fallbackDns = ["9.9.9.9" "2620::fe::fe"]; }; users.users.${username}.extraGroups = ["networkmanager"]; + + systemd = { + network = { + enable = true; + wait-online.anyInterface = true; + }; + }; }