Restructure source
This commit is contained in:
parent
09edd097b9
commit
c7685334cf
8 changed files with 9 additions and 8 deletions
12
helpers.nix
12
helpers.nix
|
|
@ -1,12 +0,0 @@
|
|||
pkgs: rec {
|
||||
dataDir = "~/.local/share/jail.nix";
|
||||
|
||||
dataDirSubPath = subPath: "${dataDir}/${escape subPath}";
|
||||
|
||||
noescape = value: { _noescape = value; };
|
||||
|
||||
escape = rawOrStr:
|
||||
if builtins.typeOf rawOrStr == "set" && rawOrStr ? _noescape
|
||||
then rawOrStr._noescape
|
||||
else pkgs.lib.strings.escapeShellArg rawOrStr;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue