net: hardcode the host/IPs for desko/servo/lappy

This commit is contained in:
2022-08-30 21:56:04 -07:00
parent 956545a795
commit 877870a522
2 changed files with 13 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
./allocations.nix ./allocations.nix
./env ./env
./fs.nix ./fs.nix
./net.nix
./secrets.nix ./secrets.nix
./users.nix ./users.nix
./vpn.nix ./vpn.nix

12
modules/universal/net.nix Normal file
View File

@@ -0,0 +1,12 @@
{ config, ... }:
{
# if using router's DNS, these mappings will already exist.
# if using a different DNS provider (which servo does), then we need to explicity provide them.
# ugly hack. would be better to get servo to somehow use the router's DNS
networking.hosts = {
"192.168.0.5" = [ "servo" ];
"192.168.0.20" = [ "lappy" ];
"192.168.0.22" = [ "desko" ];
};
}