Allow overriding jail base permissions
This commit is contained in:
parent
24de419827
commit
f18f1cf701
8 changed files with 154 additions and 74 deletions
|
|
@ -1,4 +1,7 @@
|
|||
{ pkgs, lib, helpers }: rec {
|
||||
pkgs: let
|
||||
inherit (pkgs) lib;
|
||||
helpers = import ./helpers.nix pkgs;
|
||||
in rec {
|
||||
noescape = {
|
||||
sig = "String -> NoEscapedString";
|
||||
doc = ''
|
||||
|
|
@ -25,9 +28,7 @@
|
|||
(readonly (noescape "\"$FOO\""))
|
||||
```
|
||||
'';
|
||||
__functor = _:
|
||||
value: { _noescape = value; }
|
||||
;
|
||||
__functor = _: helpers.noescape;
|
||||
};
|
||||
|
||||
escape = {
|
||||
|
|
@ -52,12 +53,7 @@
|
|||
}
|
||||
```
|
||||
'';
|
||||
__functor = _:
|
||||
rawOrStr:
|
||||
if builtins.typeOf rawOrStr == "set" && rawOrStr ? _noescape
|
||||
then rawOrStr._noescape
|
||||
else lib.strings.escapeShellArg rawOrStr
|
||||
;
|
||||
__functor = _: helpers.escape;
|
||||
};
|
||||
|
||||
compose = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue