use systemd-networkd

This commit is contained in:
Christoph Cullmann 2023-01-15 22:48:29 +01:00
parent 5d2ad5824d
commit a3576e284b
4 changed files with 15 additions and 31 deletions

View file

@ -90,10 +90,15 @@ in
]; ];
}; };
# # allow all firmware
# we let the FRITZ!Box do the job hardware.enableAllFirmware = true;
#
networking.useDHCP = true; # use systemd-networkd
networking.useDHCP = false;
networking.useNetworkd = true;
# ensure firewall is up
networking.firewall.enable = true;
# swap to RAM # swap to RAM
zramSwap.enable = true; zramSwap.enable = true;
@ -268,11 +273,6 @@ in
services.avahi.enable = true; services.avahi.enable = true;
services.avahi.nssmdns = true; services.avahi.nssmdns = true;
# ensure firewall is up
networking.firewall = {
enable = true;
};
# let's get SSD status # let's get SSD status
services.smartd.enable = true; services.smartd.enable = true;

View file

@ -20,14 +20,8 @@
swapDevices = [ ]; swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on the right ethernet interface.
# (the default) this is the recommended approach. When using systemd-networkd it's networking.interfaces.enp1s0.useDHCP = true;
# 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.enp1s0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;

View file

@ -25,13 +25,8 @@
swapDevices = [ ]; swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on the right ethernet interface.
# (the default) this is the recommended approach. When using systemd-networkd it's networking.interfaces.enp3s0.useDHCP = true;
# 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.enp0s20f0u6u3.useDHCP = lib.mkDefault true;
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";

View file

@ -25,13 +25,8 @@
swapDevices = [ ]; swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on the right ethernet interface.
# (the default) this is the recommended approach. When using systemd-networkd it's networking.interfaces.enp8s0.useDHCP = true;
# 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.enp0s20f0u4u3.useDHCP = lib.mkDefault true;
# networking.interfaces.enp8s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";