Add samples

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-07-26 00:07:09 +03:00
parent a35a476654
commit 90a6e58dca
6 changed files with 104 additions and 0 deletions

23
samples/network.dcfg Normal file
View File

@@ -0,0 +1,23 @@
fn lib = {
enable = true
interfaces = {
eth0.ip = '192.168.0.10'
eth0.gateway = '192.168.0.1'
eth0.dns = [ '8.8.8.8' '1.1.1.1' ]
wlan0 = {
ssid = "HomeWiFi"
password = "super_secret"
dhcp = on
}
}
firewall = {
tcp = (lib.join
[ 22 80 443 ]
(lib.list_from_range 3000 3010)
)
udp = [ 53 123 ]
}
}