set static ip for semita

This commit is contained in:
Sam 2024-10-03 14:55:42 +01:00
parent 0038dbf8ce
commit 2e90b1ae46
2 changed files with 14 additions and 1 deletions

View File

@ -41,7 +41,7 @@
if [ -z "$IP_ADDRESS" ];
then
printf "$network_symbol"
printf "[$network_symbol] "
else
printf "[$network_symbol|$IP_ADDRESS] "
fi

View File

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