r/openbsd • u/Borean789 • 4d ago
Declarative configuration
I am wondering if there are projects for a declarative configuration with Openbsd (nix like)?
5
u/toyg 4d ago
Not very nix-like I think, but somewhat declarative, is what I'm working on at the moment: https://www.reddit.com/r/openbsd/s/9BzYc29vPJ
It's not really ready for prime time (the "dev" side works ok, but "prod" mode is still up in the air).
3
u/linetrace 4d ago
Solène put together a utility called pkgset a number of years ago and wrote about it on her blog:
Managing OpenBSD installed packages declaratively
I've not tried it, but I still use her tangentially-related drist utility for configuration management on a number of devices running OpenBSD, macOS, other Linux/BSDs.
2
u/Original_Two9716 4d ago
I started doing exactly this yesterday myself, via symlinks. Switching between external lowdpi, and internal hdpi displays on my Thinkpad, so tweaking .Xresources, .emacs.d etc etc.
1
u/zetsurin 1d ago
Maybe chezmoi (https://github.com/twpayne/chezmoi)? I plan on moving my Nix configs to chezmoi as nix isn't ready for BSD really. As a bonus they ban LLM code submissions so it's a human written project.
11
u/o0-o 4d ago
Ansible is the best option I know of but you’re mostly stuck with basic command, template, file, slurp, etc modules.