Commit graph

10 commits

Author SHA1 Message Date
Alex David
8d9acc76f3 Add wrap-entry combinator 2025-06-07 15:19:45 -07:00
Alex David
83738cbb8e Fix indentation 2025-06-07 15:14:29 -07:00
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
3c0a3b807b Allow sharing namespaces other than net 2025-05-17 11:19:23 -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
25168bde2c Add initial spike 2025-04-27 12:07:03 -07:00