diff options
author | Adrian Kummerlaender | 2019-02-24 21:02:29 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2019-02-24 21:02:29 +0100 |
commit | f87582250fd324cd04886cd84a7ee58d03133b13 (patch) | |
tree | 6e49ead9beb5a806d6525ea0f8e0034ccb34346c /gui | |
parent | 68e680721c875c5b677b5c60e754cdf81cc0e909 (diff) | |
download | nixos_home-f87582250fd324cd04886cd84a7ee58d03133b13.tar nixos_home-f87582250fd324cd04886cd84a7ee58d03133b13.tar.gz nixos_home-f87582250fd324cd04886cd84a7ee58d03133b13.tar.bz2 nixos_home-f87582250fd324cd04886cd84a7ee58d03133b13.tar.lz nixos_home-f87582250fd324cd04886cd84a7ee58d03133b13.tar.xz nixos_home-f87582250fd324cd04886cd84a7ee58d03133b13.tar.zst nixos_home-f87582250fd324cd04886cd84a7ee58d03133b13.zip |
Add nix-shell environment type to tasker
Allows for convenient management of non-project-specific shell environments.
Diffstat (limited to 'gui')
-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 { |