aboutsummaryrefslogtreecommitdiff
path: root/lib/mk-sandbox-system.nix
diff options
context:
space:
mode:
authorpacien2022-11-15 01:06:03 +0100
committerpacien2022-11-15 01:06:03 +0100
commit08e98e2e632a4b9db9568799f2b36aea345dc36d (patch)
tree97f2473b928d0961f422b3c73f610ee728c5ca61 /lib/mk-sandbox-system.nix
parent2d2ab5d7e032300c0b391a36892b0b79b9b82f75 (diff)
downloadflaky-utils-08e98e2e632a4b9db9568799f2b36aea345dc36d.tar.gz
lib/shell: add optional print functions
Diffstat (limited to 'lib/mk-sandbox-system.nix')
-rw-r--r--lib/mk-sandbox-system.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mk-sandbox-system.nix b/lib/mk-sandbox-system.nix
index b678399..56ccad1 100644
--- a/lib/mk-sandbox-system.nix
+++ b/lib/mk-sandbox-system.nix
@@ -55,8 +55,8 @@ in rec {
55 # TODO: also print a summary of the host mount points 55 # TODO: also print a summary of the host mount points
56 # TODO: also print a summary of the forwarded ports 56 # TODO: also print a summary of the forwarded ports
57 interactiveShellInit = lib.mkBefore '' 57 interactiveShellInit = lib.mkBefore ''
58 ${lib.optionalString (envVars != {}) (shellLib.printEnvVars envVars)} 58 ${shellLib.ifSomeAttrs envVars shellLib.printEnvVars}
59 ${lib.optionalString (tools != []) (shellLib.printBins tools)} 59 ${shellLib.ifSomeList tools shellLib.printBins}
60 echo 60 echo
61 ''; 61 '';
62 }; 62 };