mirror of
https://github.com/immich-app/devtools.git
synced 2026-09-30 13:23:00 +08:00
Configure static IP
This commit is contained in:
+11
-2
@@ -23,8 +23,17 @@
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
networking.hostName = "mich"; # Define your hostname.
|
||||
networking.hostId = "e3e9d999";
|
||||
networking = {
|
||||
hostName = "mich";
|
||||
hostId = "e3e9d999";
|
||||
|
||||
interfaces.eth0.ipv4.addresses = [ {
|
||||
address = "162.55.86.82";
|
||||
prefixLength = 26;
|
||||
} ];
|
||||
|
||||
defaultGateway = "162.55.86.65";
|
||||
};
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
|
||||
Reference in New Issue
Block a user