Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>I would love to see NixOS-style declarative management brought to one (or more) of the BSDs.

In theory, an OpenBSD NSH configuration would have a large overlap of features and functionality with the Nix-based router configuration you've been working on. Btw, NSH allows one to configure OpenBSD in a similar CLI shell as that of a Cisco, ProCurve, or similar device. The shell commands make up a configuration file that can be exported / imported. NixOS & BSD is something I thought of but hadn't mentioned when someone recently submitted[0] a link to NSH. Coincidentally, another user brought up NixOS as a potential solution, only for the comment to trigger some friction[1].

I've been dreaming about more integration between Nix and BSD for a while now, but unfortunately, my skills and knowledge to actually implement something like this are nowhere close to where they need to be to actually create anything in this vein. That being said, there are others who have done more, and so Nix is available on FreeBSD[2]. Nix on FreeBSD has a long way to go before it's as useful as it is on Linux/macOS - the latest discussion on it is in the NixOS Discourse forum[3].

Appreciate you linking to the blog post and GitHub repo for nixos-router. FYI, one other option available for Linux is the Debian-based VyOS[4] which provides a familiar command-line interface like OpenBSD NSH.

[0] https://news.ycombinator.com/item?id=30942489

[1] https://news.ycombinator.com/item?id=30966266

[2] https://www.freshports.org/sysutils/nix/

[3] https://discourse.nixos.org/t/status-of-freebsd/17786

[4] https://vyos.net/



If I may ask, how is vyos in terms of functionality? I'm more than comfortable with cli (have worked with cisco/hp/arista routers and firewalls before).


Ubiquiti is using VyOS or Vyetta on Edgemax series.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: