Set static IPv4 for ens3
This commit is contained in:
parent
55c06485b8
commit
0c64358f3e
1 changed files with 9 additions and 0 deletions
|
|
@ -1,6 +1,15 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
networking.hostName = "bucur";
|
networking.hostName = "bucur";
|
||||||
|
networking.useDHCP = false;
|
||||||
|
networking.interfaces.ens3.ipv4.addresses = [
|
||||||
|
{
|
||||||
|
address = "194.68.44.28";
|
||||||
|
prefixLength = 24;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
networking.defaultGateway = "194.68.44.1";
|
||||||
|
networking.nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||||
time.timeZone = "UTC";
|
time.timeZone = "UTC";
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue