Post #848018
2026-03-25 18:33 UTC
Thanks to a forum post on the NixOS forums here https://discourse.nixos.org/t/unifi-os-server-on-nixos/76039
I have come up with a modified version of the UniFi OS Server setup that runs as a normal podman container:
- rootless if desired
- without privileged or any non-default capability/privilege flags
Stage 1: https://git.foxden.network/FoxDen/core/src/branch/main/nix/packages/unifi-os-server-image/package.nix
A package that rips the image out of the official binary:
Stage 2: https://git.foxden.network/FoxDen/core/src/branch/main/nix/modules/nixos/services/unifi-os-server.nix
Creates the actual OCI container (the "oci" field in my custom handler maps 1:1 to virtualization.oci-containers.[things], the "systemd" field maps 1:1 to the systemd podman-[things] service config for those curious)
Replies (0)
No replies.