diff options
Diffstat (limited to 'gui/pkgs')
-rw-r--r-- | gui/pkgs/tasker.nix | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gui/pkgs/tasker.nix b/gui/pkgs/tasker.nix index bc87ee9..fa1a319 100644 --- a/gui/pkgs/tasker.nix +++ b/gui/pkgs/tasker.nix @@ -6,16 +6,21 @@ pkgs.lib.mapAttrsToList (name: conf: let executable = true; destination = "/bin/tasker_cmd_" + name; text = pkgs.lib.attrByPath [ conf.type ] "" { - terminal = '' - #!/bin/sh - exec ${pkgs.kitty}/bin/kitty -d ${conf.directory} ${conf.command} - ''; launcher = '' #!/bin/sh pushd ${conf.directory} exec ${conf.command} popd ''; + terminal = '' + #!/bin/sh + exec ${pkgs.kitty}/bin/kitty -d ${conf.directory} ${conf.command} + ''; + environment = '' + #!/bin/sh + exec ${pkgs.kitty}/bin/kitty -d ${conf.directory} nix-shell \ + ${builtins.unsafeDiscardStringContext conf.environment.drvPath} --command fish + ''; }; }; shortcut = pkgs.writeTextFile { |