set static ip for semita and add /srv to persistance
This commit is contained in:
parent
2e90b1ae46
commit
4c857eded4
|
@ -4,6 +4,7 @@
|
|||
hideMounts = true;
|
||||
directories = [
|
||||
"/etc/nixos"
|
||||
"/srv"
|
||||
"/var/log"
|
||||
"/var/lib/nixos"
|
||||
"/var/lib/systemd/coredump"
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue