aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/default.nix6
-rw-r--r--gui/pkgs/tasker.nix55
2 files changed, 0 insertions, 61 deletions
diff --git a/gui/default.nix b/gui/default.nix
index 93cf8c3..baf68bb 100644
--- a/gui/default.nix
+++ b/gui/default.nix
@@ -25,10 +25,4 @@ in {
Xft.antialias: 1
Xft.rgba: rgb
'';
-
-# desktop shortcuts for project specific tasks
- home.packages = pkgs.callPackage ./pkgs/tasker.nix {
- inherit pkgs;
- tasks = config.custom.tasks;
- };
}
diff --git a/gui/pkgs/tasker.nix b/gui/pkgs/tasker.nix
deleted file mode 100644
index 6bad2d6..0000000
--- a/gui/pkgs/tasker.nix
+++ /dev/null
@@ -1,55 +0,0 @@
-{ pkgs, tasks, ... }:
-
-pkgs.lib.mapAttrsToList (name: conf: let
-
- command = pkgs.writeTextFile {
- name = "tasker_cmd_" + name;
- executable = true;
- destination = "/bin/tasker_cmd_" + name;
- text = pkgs.lib.attrByPath [ conf.type ] "" {
- launcher = ''
- #!/bin/sh
- pushd ${conf.directory}
- exec ${conf.command}
- popd
- '';
- terminal = ''
- #!/bin/sh
- exec ${pkgs.kitty}/bin/kitty -d ${conf.directory} ${conf.command}
- '';
- local-shell = ''
- #!/bin/sh
- exec ${pkgs.kitty}/bin/kitty -d ${conf.directory} nix-shell --command fish
- '';
- local-editor = ''
- #!/bin/sh
- pushd ${conf.directory}
- exec nix-shell --run 'nvim-qt --no-ext-tabline'
- popd
- '';
- environment = ''
- #!/bin/sh
- exec ${pkgs.kitty}/bin/kitty -d ${conf.directory} nix-shell \
- ${builtins.unsafeDiscardStringContext conf.environment.drvPath} --command fish
- '';
- };
- };
-
- shortcut = pkgs.writeTextFile {
- name = "tasker_shortcut_" + name;
- executable = false;
- destination = "/share/applications/tasker_shortcut_" + name + ".desktop";
- text = ''
- [Desktop Entry]
- Type=Application
- Name=${conf.description}
- GenericName=Tasker
- Exec=${command}/bin/tasker_cmd_${name}
- Terminal=false
- '';
- };
-
-in pkgs.symlinkJoin {
- name = "tasker_task_" + name;
- paths = [ shortcut ];
-}) tasks