net: hardcode the host/IPs for desko/servo/lappy
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
./allocations.nix
|
||||
./env
|
||||
./fs.nix
|
||||
./net.nix
|
||||
./secrets.nix
|
||||
./users.nix
|
||||
./vpn.nix
|
||||
|
12
modules/universal/net.nix
Normal file
12
modules/universal/net.nix
Normal 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" ];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user