refactor(networking): use networking.useDHCP
This commit is contained in:
parent
b3d6b2d32a
commit
37bfb2bc2d
6 changed files with 1 additions and 17 deletions
|
@ -64,11 +64,6 @@
|
||||||
virtualization.enable = true;
|
virtualization.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.interfaces = {
|
|
||||||
eth0.useDHCP = true;
|
|
||||||
wlp41s0.useDHCP = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home = { profiles, pkgs, ... }: {
|
home = { profiles, pkgs, ... }: {
|
||||||
imports = with profiles; [ stretchly ];
|
imports = with profiles; [ stretchly ];
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
@ -54,8 +54,6 @@
|
||||||
virtualization.enable = true;
|
virtualization.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.interfaces.wlp170s0.useDHCP = true;
|
|
||||||
|
|
||||||
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz";
|
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz";
|
||||||
|
|
||||||
systemd.services.set-initial-backlight = {
|
systemd.services.set-initial-backlight = {
|
||||||
|
|
|
@ -24,10 +24,6 @@
|
||||||
soft-serve.enable = true;
|
soft-serve.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.interfaces = {
|
|
||||||
enp0s25.useDHCP = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.persistence."/persist" = {
|
environment.persistence."/persist" = {
|
||||||
directories = [
|
directories = [
|
||||||
"/home"
|
"/home"
|
||||||
|
|
|
@ -9,9 +9,6 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.interfaces.wlp170s0.useDHCP = true;
|
|
||||||
# networking.interfaces.enp39s0.useDHCP = true;
|
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
boot.grub.enable = true;
|
boot.grub.enable = true;
|
||||||
hardware = {
|
hardware = {
|
||||||
|
|
|
@ -28,6 +28,4 @@
|
||||||
};
|
};
|
||||||
desktop.wm.enable = true;
|
desktop.wm.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.interfaces.wlan0.useDHCP = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
networking = {
|
networking = {
|
||||||
useDHCP = false;
|
useDHCP = true;
|
||||||
firewall = {
|
firewall = {
|
||||||
checkReversePath = "loose";
|
checkReversePath = "loose";
|
||||||
trustedInterfaces = [ "tailscale0" ];
|
trustedInterfaces = [ "tailscale0" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue