🚀 static ip with static dns
parent
b2fac916b4
commit
60590e1230
|
@ -32,15 +32,25 @@
|
||||||
defaultGateway = "192.168.0.1";
|
defaultGateway = "192.168.0.1";
|
||||||
nameservers = [ "192.168.0.4" ];
|
nameservers = [ "192.168.0.4" ];
|
||||||
useDHCP = false;
|
useDHCP = false;
|
||||||
interfaces.enp42s0.useDHCP = true;
|
interfaces.enp42s0 = {
|
||||||
|
ipv4.addresses = [{
|
||||||
|
address = "192.168.0.14";
|
||||||
|
prefixLength = 24;
|
||||||
|
}];
|
||||||
|
ipv6.addresses = [{
|
||||||
|
address = "fe80::60fb:ffc:df6f:e29e";
|
||||||
|
prefixLength = 64;
|
||||||
|
}];
|
||||||
|
};
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dns = lib.mkIf (config.services.resolved.enable) "systemd-resolved";
|
dns = "none";
|
||||||
};
|
};
|
||||||
|
dhcpcd.extraConfig = ''
|
||||||
|
nohook resolv.conf
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.resolved.enable = lib.mkDefault false;
|
|
||||||
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
services.xserver.xrandrHeads = [
|
services.xserver.xrandrHeads = [
|
||||||
{ output = "HDMI-1"; }
|
{ output = "HDMI-1"; }
|
||||||
|
|
Loading…
Reference in New Issue