Commit graph

12 commits

Author SHA1 Message Date
Alex David
cb157b9dce Add documentation to combinators
This adds structured documentation and signatures to all combinators. A
future commit will consume this to generate a documentation website.

But for now having the docs in the source code is helpful to anyone
viewing `combinators.nix`.
2025-06-07 12:28:44 -07:00
Alex David
f54d444e2a Bind all /dev/video* for camera combinator
This updates the `camera` combinator to bind all `/dev/video*` devices
found at runtime. This also means bubblewrap won't crash if `camera` is
specified but there is no camera attached.
2025-06-07 11:16:05 -07:00
Alex David
2f2bea6e74 Fix typo in readme 2025-05-28 09:33:25 -07:00
Alex David
3c0a3b807b Allow sharing namespaces other than net 2025-05-17 11:19:23 -07:00
Alex David
a8dcbbefa6 Break time-zone into its own combinator 2025-05-14 09:37:30 -07:00
Alex David
8ee01f1769 Refactor lib.nix 2025-05-11 15:30:43 -07:00
Alex David
d84314ffc7 Rework persisthome
* Use new data dir for persisted homes (~/.local/share/jail.nix/home
  instead of ~/.local/share/jails)
* Rename `persisthome` -> `persist-home` (with deprecation warning when
  using the old name)
2025-05-11 15:30:43 -07:00
Alex David
8da2af4368 Rework /etc/{passwd,group} and update datadir
* Generates a valid /etc/group for mounting in jails
* Updates data dir from ~/.local/share/jails to ~/.local/share/jail.nix
  (persisthome will be updated to use the new datadir in the next commit)
* Fixes an error if data dir isn't created yet
2025-05-11 15:30:43 -07:00
Alex David
08e7907337 Move helpers into lib.nix 2025-05-11 15:30:43 -07:00
Alex David
dd40b566ac Rename helpers -> combinators 2025-05-11 15:30:43 -07:00
Alex David
162e22d7ca Add readme 2025-04-27 12:29:05 -07:00
Alex David
25168bde2c Add initial spike 2025-04-27 12:07:03 -07:00