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)
This commit is contained in:
Alex David 2025-05-11 15:10:06 -07:00
commit d84314ffc7
2 changed files with 13 additions and 3 deletions

View file

@ -8,6 +8,7 @@
noescape = value: { raw = value; };
dataDir = "~/.local/share/jail.nix";
dataDirSubPath = subPath: "${dataDir}/${escape subPath}";
deprecatedCombinator = message: combinator: lib.warn "jail ${name}: ${message}" combinator;
};
combinators = import ./combinators.nix {