🚀 enables static network configuration
This commit is contained in:
parent
a697be901f
commit
4053256ace
1 changed files with 12 additions and 3 deletions
|
@ -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" ];
|
||||||
|
|
Loading…
Reference in a new issue