From e9b409c21b1712cfc23bfa6a04c09b22b30e737e Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 26 Oct 2023 19:05:19 -0400 Subject: [PATCH] Infini-OPTIPLEX: set IP and gateway --- hosts/Infini-OPTIPLEX/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hosts/Infini-OPTIPLEX/default.nix b/hosts/Infini-OPTIPLEX/default.nix index 94902e2..4a5e169 100644 --- a/hosts/Infini-OPTIPLEX/default.nix +++ b/hosts/Infini-OPTIPLEX/default.nix @@ -19,6 +19,21 @@ info.loc.home = false; + networking = { + interfaces = { + enp0s31f6 = { + ipv4.addresses = [{ + address = "128.210.6.103"; + prefixLength = 28; + }]; + }; + }; + defaultGateway = { + address = "128.210.6.97"; + interface = "enp0s31f6"; + }; + }; + environment.persistence."/persist" = { directories = [ "/home"