feat: initial
This commit is contained in:
commit
bba9ceff39
18 changed files with 750 additions and 0 deletions
18
network/static-ip.nix
Normal file
18
network/static-ip.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
net = import ../data/network.nix;
|
||||
in
|
||||
{
|
||||
# Set a static IP address
|
||||
networking.interfaces.eth0.ipv4.addresses = [{
|
||||
address = net.ips.pi;
|
||||
prefixLength = net.network.cidr;
|
||||
}];
|
||||
|
||||
# Set default gateway (your router's IP)
|
||||
networking.defaultGateway = net.ips.router;
|
||||
|
||||
# Set DNS servers (fallback when Blocky isn't working)
|
||||
networking.nameservers = net.fallback_dns_servers;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue