🚀 enables static network configuration

nixos
Moritz Böhme 2022-01-09 14:15:39 +01:00
parent a697be901f
commit 4053256ace
1 changed files with 12 additions and 3 deletions

View File

@ -29,10 +29,19 @@
# NETWORKING # NETWORKING
networking = { networking = {
hostName = "nixos-desktop"; hostName = "nixos-desktop";
networkmanager.enable = true; defaultGateway = "192.168.0.1";
nameservers = [ "192.168.0.4" ];
useDHCP = false; useDHCP = false;
interfaces.enp42s0.useDHCP = true; interfaces.enp42s0 = {
useDHCP = false;
ipv4 = {
addresses = [{
address = "192.168.0.10";
prefixLength = 24;
}];
};
};
networkmanager.enable = true;
}; };
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];