From 4c857eded4ce29ef01ecc9d2b4792058238f792a Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 4 Oct 2024 09:30:34 +0100 Subject: [PATCH] set static ip for semita and add /srv to persistance --- hosts/common/optional/persistence.nix | 1 + hosts/semita/default.nix | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hosts/common/optional/persistence.nix b/hosts/common/optional/persistence.nix index 1678ad6..f70abd1 100644 --- a/hosts/common/optional/persistence.nix +++ b/hosts/common/optional/persistence.nix @@ -4,6 +4,7 @@ hideMounts = true; directories = [ "/etc/nixos" + "/srv" "/var/log" "/var/lib/nixos" "/var/lib/systemd/coredump" diff --git a/hosts/semita/default.nix b/hosts/semita/default.nix index 760daf3..83d5cca 100644 --- a/hosts/semita/default.nix +++ b/hosts/semita/default.nix @@ -80,20 +80,18 @@ in { networking = { hostName = "semita"; - 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"; + address = "10.0.10.3"; prefixLength = 24; } ]; }; defaultGateway = { - address = "10.0.10.3"; + address = "10.0.10.1"; interface = "eth0"; }; };