Compare commits

..

No commits in common. "042d70cb3d430eff34027a167979284218825a3c" and "3fbf1a443639df142c142510bf35dd6374b4ae34" have entirely different histories.

3 changed files with 12 additions and 4 deletions

View file

@ -53,6 +53,14 @@
fsType = "vfat";
};
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -141,7 +141,6 @@ in
boot.initrd.availableKernelModules = [ "igb" ];
boot.initrd.network = {
enable = true;
udhcpc.enable = true;
ssh = {
enable = true;
hostKeys = map (f: f.path) hostKeys;

View file

@ -19,12 +19,13 @@ let
};
in
{
networking.useDHCP = lib.mkDefault true;
networking.nameservers = if isAdguardHost then nameservers.local else nameservers.remote;
networking.nftables.enable = true;
networking.networkmanager.dns = "systemd-resolved";
networking.networkmanager = {
enable = true;
dns = "systemd-resolved";
};
systemd.network = {
enable = true;