diff options
author | euxane | 2024-10-06 01:02:33 +0200 |
---|---|---|
committer | euxane | 2024-10-06 01:02:33 +0200 |
commit | 3e337302f9fa93a3496aafd7f57223cbd794de28 (patch) | |
tree | 7204de4f36fdb7e9f5cfa4a0b6b29223e00f4227 /lib/mk-sandbox-system.nix | |
parent | 57435d46fd5a2fe59ca9c86605928690795380f5 (diff) | |
download | flaky-utils-master.tar.gz |
Diffstat (limited to 'lib/mk-sandbox-system.nix')
-rw-r--r-- | lib/mk-sandbox-system.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mk-sandbox-system.nix b/lib/mk-sandbox-system.nix index 9408be3..68a13a7 100644 --- a/lib/mk-sandbox-system.nix +++ b/lib/mk-sandbox-system.nix | |||
@@ -11,7 +11,7 @@ let | |||
11 | shellLib = flake.lib.shell { inherit pkgs; }; | 11 | shellLib = flake.lib.shell { inherit pkgs; }; |
12 | 12 | ||
13 | print = rec { | 13 | print = rec { |
14 | printSharedDir = name: { source, target }: '' | 14 | printSharedDir = name: { source, target, ... }: '' |
15 | echo -en ${shellLib.fmt.keyword target}": " | 15 | echo -en ${shellLib.fmt.keyword target}": " |
16 | echo ${pkgs.lib.escapeShellArg source} | 16 | echo ${pkgs.lib.escapeShellArg source} |
17 | ''; | 17 | ''; |
@@ -118,7 +118,7 @@ in rec { | |||
118 | 118 | ||
119 | apps.${name} = { | 119 | apps.${name} = { |
120 | type = "app"; | 120 | type = "app"; |
121 | program = toString (pkgs.writeShellScript "sandbox-vm" ('' | 121 | program = pkgs.lib.getExe (pkgs.writeShellScriptBin "sandbox-vm" ('' |
122 | # Save current directory for mounting in VM | 122 | # Save current directory for mounting in VM |
123 | SHARED_CWD=$PWD | 123 | SHARED_CWD=$PWD |
124 | export SHARED_CWD | 124 | export SHARED_CWD |