refactor(networking): use networking.useDHCP

This commit is contained in:
Infinidoge 2022-06-13 12:52:44 -04:00
parent b3d6b2d32a
commit 37bfb2bc2d
6 changed files with 1 additions and 17 deletions

View file

@ -64,11 +64,6 @@
virtualization.enable = true;
};
networking.interfaces = {
eth0.useDHCP = true;
wlp41s0.useDHCP = true;
};
home = { profiles, pkgs, ... }: {
imports = with profiles; [ stretchly ];
home.packages = with pkgs; [

View file

@ -54,8 +54,6 @@
virtualization.enable = true;
};
networking.interfaces.wlp170s0.useDHCP = true;
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz";
systemd.services.set-initial-backlight = {

View file

@ -24,10 +24,6 @@
soft-serve.enable = true;
};
networking.interfaces = {
enp0s25.useDHCP = true;
};
environment.persistence."/persist" = {
directories = [
"/home"

View file

@ -9,9 +9,6 @@
./hardware-configuration.nix
];
networking.interfaces.wlp170s0.useDHCP = true;
# networking.interfaces.enp39s0.useDHCP = true;
modules = {
boot.grub.enable = true;
hardware = {

View file

@ -28,6 +28,4 @@
};
desktop.wm.enable = true;
};
networking.interfaces.wlan0.useDHCP = true;
}

View file

@ -1,7 +1,7 @@
{ pkgs, config, ... }:
{
networking = {
useDHCP = false;
useDHCP = true;
firewall = {
checkReversePath = "loose";
trustedInterfaces = [ "tailscale0" ];