feat: initial

This commit is contained in:
Katharina 2026-03-09 22:06:13 +01:00
commit bba9ceff39
18 changed files with 750 additions and 0 deletions

18
network/static-ip.nix Normal file
View 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;
}