Add tabulate to jupyter
This commit is contained in:
parent
3586a5b2b8
commit
ca1606a6a3
|
@ -15,7 +15,6 @@ in
|
|||
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
appName = "moonforge";
|
||||
stateDir = "/persist/state/var/lib/forgejo";
|
||||
mailerPasswordFile = config.sops.secrets.forgejo_mail_password.path;
|
||||
|
||||
|
@ -28,7 +27,8 @@ in
|
|||
|
||||
# See [the cheatsheet](https://docs.gitea.com/next/administration/config-cheat-sheet)
|
||||
settings = {
|
||||
session.COOKIE_SECURE = true;
|
||||
default.APP_NAME = "moonforge";
|
||||
|
||||
server = {
|
||||
DOMAIN = host;
|
||||
HTTP_PORT = port;
|
||||
|
@ -38,6 +38,7 @@ in
|
|||
|
||||
cron.ENABLED = true;
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
session.COOKIE_SECURE = true;
|
||||
|
||||
mailer = {
|
||||
ENABLED = true;
|
||||
|
|
|
@ -1,12 +1,25 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
# {{{ Jupyterhub/lab env
|
||||
let appEnv = pkgs.python3.withPackages (p: with p; [
|
||||
appEnv = pkgs.python3.withPackages (p: with p; [
|
||||
jupyterhub
|
||||
jupyterlab
|
||||
jupyterhub-systemdspawner
|
||||
jupyter-collaboration
|
||||
]);
|
||||
# }}}
|
||||
# {{{ Client wrapper
|
||||
deps = [ ];
|
||||
wrappedAppEnv = pkgs.symlinkJoin {
|
||||
inherit (appEnv) name meta;
|
||||
paths = [ appEnv ];
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/* \
|
||||
--prefix PATH : ${lib.makeBinPath deps}
|
||||
'';
|
||||
};
|
||||
# }}}
|
||||
in
|
||||
{
|
||||
services.jupyterhub = {
|
||||
|
@ -33,6 +46,7 @@ in
|
|||
numpy
|
||||
scipy
|
||||
matplotlib
|
||||
tabulate
|
||||
]));
|
||||
in
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue