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;
directories = [
"/etc/nixos"
"/srv"
"/var/log"
"/var/lib/nixos"
"/var/lib/systemd/coredump"

View File

@ -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";
};
};