From 2e90b1ae46e70051238cbdf5d6428bbc8892d175 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 3 Oct 2024 14:55:42 +0100 Subject: [PATCH] set static ip for semita --- .../desktop/dwm/scripts/sb-network-status.nix | 2 +- hosts/semita/default.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/home/common/optional/desktop/dwm/scripts/sb-network-status.nix b/home/common/optional/desktop/dwm/scripts/sb-network-status.nix index e1dfe49..64c66c4 100644 --- a/home/common/optional/desktop/dwm/scripts/sb-network-status.nix +++ b/home/common/optional/desktop/dwm/scripts/sb-network-status.nix @@ -41,7 +41,7 @@ if [ -z "$IP_ADDRESS" ]; then - printf "$network_symbol" + printf "[$network_symbol] " else printf "[$network_symbol|$IP_ADDRESS] " fi diff --git a/hosts/semita/default.nix b/hosts/semita/default.nix index 683bfe3..760daf3 100644 --- a/hosts/semita/default.nix +++ b/hosts/semita/default.nix @@ -83,6 +83,19 @@ in { networkmanager.enable = true; enableIPv6 = false; nameservers = ["10.0.10.60" "8.8.8.8"]; + interfaces.eth0 = { + useDHCP = false; + ipv4.addresses = [ + { + address = "192.10.99.2"; + prefixLength = 24; + } + ]; + }; + defaultGateway = { + address = "10.0.10.3"; + interface = "eth0"; + }; }; services.libinput.enable = true;