jail.nix/lib
Alex David f55483fb38 Forward override to jailed derivations
On Nixos, it may be desirable to install some software using
`programs.*.enable = true`. Jail.nix mostly supports this because you
can either use `jail-nix.mkOverlay`, or just use Nixos
`programs.*.package = jail ...` to inject a jailed version of the
package.

However, for some modules, like Firefox, the Nixos module calls
`override` on the package. Normally, you would just call `override` on
the package passed into jail, but this is not possible to do within a
Nixos module.

To address this, this patch will check to see if a package passed into
jail has an `override` field, and if so will add an `override` on the
jailed derivation that passes the override function to the entrypoint.

Thanks to ~juanjakobo for reporting this!

Fixes https://todo.sr.ht/~alexdavid/jail.nix/1
2025-10-13 16:06:29 -07:00
..
combinators Improve share-ns doc 2025-10-10 22:51:25 -07:00
base-permissions.nix Pull remaining default perms into base combinator 2025-10-10 16:28:45 -07:00
combinators.nix Pull remaining default perms into base combinator 2025-10-10 16:28:45 -07:00
default.nix Format nix files with nixfmt-tree 2025-09-11 07:31:48 -07:00
helpers.nix Add pushState helper 2025-09-28 15:58:58 -07:00
jail.nix Forward override to jailed derivations 2025-10-13 16:06:29 -07:00