aboutsummaryrefslogtreecommitdiff
path: root/gui/tasker.nix
blob: bb006fadd8577fc7644c83b7feabbe08ae8c078f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ pkgs, ... }:

let
  tasks = {
    "bsc_edit" = {
      description = "Grid refinement BSc thesis editor";
      directory = "~/university/documents/bachelor/arbeit";
      command = "nix-shell --run 'nvim-qt --no-ext-tabline'";
    };
    "bsc_view" = {
      description = "Grid refinement BSc thesis PDF";
      directory = "~/university/documents/bachelor/arbeit";
      command = "evince build/main.pdf";
    };
  };
in {
  home.packages = let
    task_derivations = pkgs.callPackage ./pkgs/tasker.nix { inherit pkgs; inherit tasks; };
  in task_derivations;
}