mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-03-14 18:18:59 +00:00
wrapper-manager/sandboxing/boxxy: refactor
This commit is contained in:
parent
20b483fda4
commit
11e2ae7e33
@ -99,10 +99,12 @@ in
|
|||||||
(_: metadata:
|
(_: metadata:
|
||||||
let
|
let
|
||||||
inherit (metadata) source destination mode;
|
inherit (metadata) source destination mode;
|
||||||
in
|
ruleArg =
|
||||||
if mode != null
|
if mode != null
|
||||||
then "--rule ${source}:${destination}:${mode}"
|
then "${source}:${destination}:${mode}"
|
||||||
else "--rule ${source}:${destination}")
|
else "${source}:${destination}";
|
||||||
|
in
|
||||||
|
"--rule ${lib.escapeShellArg ruleArg}")
|
||||||
submoduleCfg.rules);
|
submoduleCfg.rules);
|
||||||
|
|
||||||
arg0 = lib.getExe submoduleCfg.package;
|
arg0 = lib.getExe submoduleCfg.package;
|
||||||
|
Loading…
Reference in New Issue
Block a user