From 9ac2ca48b161010f8369785435dd9805d28344db Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 15 Mar 2021 10:40:49 +0100 Subject: [PATCH] Set hostname and hostId --- modules/networking.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/networking.nix b/modules/networking.nix index 7056eae..4879c94 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -3,12 +3,14 @@ { # Assign a static IP networking = { + hostName = "unit"; + hostId = "737d82f4"; interfaces.eth0 = { useDHCP = false; - addresses = { + ipv4.addresses = [{ address = "10.0.1.3"; prefixLength = 24; - }; + }]; }; defaultGateway = { address = "10.0.1.1";