This commit is contained in:
2025-07-24 16:03:22 +02:00
parent 1a5f7fd5c5
commit 0c94de8364
6 changed files with 76 additions and 9 deletions
+1 -8
View File
@@ -6,6 +6,7 @@
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
./networking.nix
# ./nvidia.nix
];
@@ -64,14 +65,6 @@
'';
};
# 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.enp0s20f0u4u4c2.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+24
View File
@@ -0,0 +1,24 @@
{ pkgs, ... }: {
# 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.enp0s20f0u4u4c2.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
networking = {
useDHCP = lib.mkDefault true;
hostName = "nixos";
networkmanager.enable = true; # enable network manager to start during boot
nameservers = [ "8.8.8.8" "8.8.4.4" ];
enableIPv6 = false;
# nat = {
# enable = true;
# internalInterfaces = ["ve-+"];
# externalInterface = "enp0s31f6"; # eth interface
# };
};
}