56 lines
No EOL
1.1 KiB
Nix
56 lines
No EOL
1.1 KiB
Nix
rec {
|
|
secrets = import ../intermediate/secrets.nix;
|
|
|
|
network = {
|
|
subnet = "192.168.2.0/24";
|
|
subnet_base = "192.168.2.0";
|
|
gateway = devices.router.ip;
|
|
cidr = 24;
|
|
};
|
|
|
|
devices = {
|
|
"pi" = {
|
|
type = "local";
|
|
ip = "192.168.2.100";
|
|
};
|
|
"self" = devices.pi;
|
|
"desktop" = {
|
|
type = "local";
|
|
ip = "192.168.2.101";
|
|
reservation = {
|
|
hw_address = "30:9c:23:81:91:ea";
|
|
hostname = "desktop";
|
|
};
|
|
};
|
|
"router" = {
|
|
type = "local";
|
|
ip = "192.168.2.1";
|
|
};
|
|
"remote_proxy" = {
|
|
type = "auto_ssh";
|
|
ip = "193.31.24.99";
|
|
domain = "nudelerde.de";
|
|
auto_ssh = {
|
|
enable = true;
|
|
sshPort = 22;
|
|
sshUser = "root";
|
|
key = secrets.byName.autossh_remote_proxy_key.path;
|
|
known_hosts = secrets.byName.autossh_remote_proxy_known_hosts.path;
|
|
};
|
|
};
|
|
};
|
|
|
|
dhcp = {
|
|
pool_start = "192.168.2.50";
|
|
pool_end = "192.168.2.90";
|
|
default_lease = 3600;
|
|
max_lease = 86400;
|
|
};
|
|
|
|
fallback_dns_servers = [
|
|
"1.1.1.1"
|
|
"8.8.8.8"
|
|
];
|
|
|
|
local_domain = "home";
|
|
} |