I just installed #OpenWRT on an old (2013) Fritz!Box router i got scammed into on Kleinanzeigen.
it was really simple
i swear i had an openwrt sticker
i unfortunately can't find it
maybe i gave it away
but why would i if i got it for sticking it on my router?
Do you guys think i could install #NixOS on that router instead? It only has like ~100MiB of Memory tho.
@qz It was very simple to install it on a rather recent TP-Link router as well. But it depends on the model.
Once it is installed, it is rock solid. Updates are also very smooth.
@qz
Maybe check out Liminix, seems to be just the right use case for it. Have never tried it myself though...
@qz sounds like you owe it to the internet to try! Use the minimal iso and make a minimal flake. Check out my codeberg under the nix/nixos repo you will find a "router" Snag my nftables for LAN / WAN give it a go i wanna know how it goes
currently my router is deployed on 8th gen intel x86 box. You could save resources if you offloaded your dhcp and dns to pihole and then you'd have a nice ui to manage your dhcp devices on a bare bones router.
@mischievoustomato @qz probably building with all your local package stores. Bet if you did some housekeeping and tried to build excluding any nix-store caches it would be quite a bit smaller? Just a guess though knowing nothing about your build script
@mischievoustomato @qz totally the way to go for a image on your local network. 10gig image on lan is nothing and would save toooonz of compile time
@noflcl just systemd is already 180MiB so this will never work with normal NixOS on this device
@noflcl finding that out made me learn a cool nix command tho:
try `$ nix path-info -rhS $(which systemctl)`
oh damn how is glibc already 30MB?
4,4 MiB is just a chinese character collation
@qz you could reduce localization to US only, consider running init startup instead of systemd?
@qz you cannot eval on such machines but i think if your userspace is small enough, yeah, that fits
@wamserma it seems definitely interesting, but i'll have to write device and flakes support code myself
definitely more work than openwrt for a probably more unstable experience