aboutsummaryrefslogtreecommitdiff
path: root/module/tasker.nix
diff options
context:
space:
mode:
Diffstat (limited to 'module/tasker.nix')
-rw-r--r--module/tasker.nix22
1 files changed, 0 insertions, 22 deletions
diff --git a/module/tasker.nix b/module/tasker.nix
index 112da88..4f2e0fe 100644
--- a/module/tasker.nix
+++ b/module/tasker.nix
@@ -11,22 +11,6 @@ let
#!/bin/sh
exec ${pkgs.kitty}/bin/kitty -d ${dir} ${cmd}
'';
- launchJupyterInDirectory = dir: jupyter: ''
- #!/usr/bin/env fish
-
- for port in (seq 9000 9100)
- if not ss --listening --oneline --tcp --no-header | awk '{ split($4, port, ":"); print port[2]+0 }' | grep -q $port
- set free_port $port
- break
- end
- end
-
- set token (head /dev/urandom | tr -dc A-Za-z0-9 | head -c 40)
- ${jupyter}/bin/jupyter-lab --no-browser --port=$free_port --NotebookApp.token=$token &
- sleep 2
- ${pkgs.chromium}/bin/chromium --app="http://localhost:$free_port/?token=$token"
- kill (jobs -lp)
- '';
taskivations = pkgs.lib.mapAttrsToList (name: conf: let
command = pkgs.writeTextFile {
@@ -43,12 +27,6 @@ let
environment = launchTerminalInDirectory conf.directory ''
nix-shell ${builtins.unsafeDiscardStringContext conf.environment.drvPath} --command fish
'';
-
- python-console = launchCommandInDirectory "~/" ''
- nix-shell ${builtins.unsafeDiscardStringContext conf.environment.drvPath} --command jupyter-qtconsole
- '';
-
- jupyter-lab = launchJupyterInDirectory conf.directory conf.environment;
};
};