Skip to content

Instantly share code, notes, and snippets.

@jluttine
Created April 2, 2019 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jluttine/aae8e35befdba4006ad5c6251220ce64 to your computer and use it in GitHub Desktop.
Save jluttine/aae8e35befdba4006ad5c6251220ce64 to your computer and use it in GitHub Desktop.
JupyterHub nix service
systemd.services.jupyterhub = {
description = "Jupyter Hub";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
# For some reason, spawnJupyterLab script doesn't work properly if this
# command is in ExecStart in serviceConfig.
script = ''
${penv}/bin/jupyterhub --Spawner.cmd='${spawnJupyterLab}'
'';
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment