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