add an experimental module for networking

This commit is contained in:
Andreas Zweili 2022-01-12 22:10:38 +01:00
parent 5b91851b95
commit ffd7764cf4
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
{ hostname, ip, ... }:
let
hostname = ip;
ip = hostname;
in
{
networking = {
hostName = hostname;
hosts = {
"127.0.0.1" = [ "${hostname}.2li.local" ];
ip = [ "${hostname}.2li.local" ];
};
defaultGateway = "10.7.89.1";
nameservers = [ ip ];
interfaces.ens18.ipv4.addresses = [
{
address = ip;
prefixLength = 24;
}
];
};
}