set static ip for semita and add /srv to persistance

This commit is contained in:
Sam 2024-10-04 09:30:34 +01:00
parent 2e90b1ae46
commit 4c857eded4
2 changed files with 3 additions and 4 deletions

View File

@ -4,6 +4,7 @@
hideMounts = true; hideMounts = true;
directories = [ directories = [
"/etc/nixos" "/etc/nixos"
"/srv"
"/var/log" "/var/log"
"/var/lib/nixos" "/var/lib/nixos"
"/var/lib/systemd/coredump" "/var/lib/systemd/coredump"

View File

@ -80,20 +80,18 @@ in {
networking = { networking = {
hostName = "semita"; hostName = "semita";
networkmanager.enable = true;
enableIPv6 = false;
nameservers = ["10.0.10.60" "8.8.8.8"]; nameservers = ["10.0.10.60" "8.8.8.8"];
interfaces.eth0 = { interfaces.eth0 = {
useDHCP = false; useDHCP = false;
ipv4.addresses = [ ipv4.addresses = [
{ {
address = "192.10.99.2"; address = "10.0.10.3";
prefixLength = 24; prefixLength = 24;
} }
]; ];
}; };
defaultGateway = { defaultGateway = {
address = "10.0.10.3"; address = "10.0.10.1";
interface = "eth0"; interface = "eth0";
}; };
}; };