jail.nix/lib/combinators/try-readwrite.nix

11 lines
226 B
Nix
Raw Permalink Normal View History

{ combinators, ... }:
let
inherit (combinators) try-rw-bind;
in
{
sig = "String -> Permission";
doc = ''
Binds the specified path in the jail as read-write if it exists.
'';
impl = path: try-rw-bind path path;
}