From f87582250fd324cd04886cd84a7ee58d03133b13 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 24 Feb 2019 21:02:29 +0100 Subject: Add nix-shell environment type to tasker Allows for convenient management of non-project-specific shell environments. --- gui/pkgs/tasker.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'gui') 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 { -- cgit v1.2.3