1
Fork 0

Add tabulate to jupyter

This commit is contained in:
prescientmoon 2024-05-22 14:04:20 +02:00
parent 3586a5b2b8
commit ca1606a6a3
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
2 changed files with 25 additions and 10 deletions

View file

@ -15,7 +15,6 @@ in
services.forgejo = { services.forgejo = {
enable = true; enable = true;
appName = "moonforge";
stateDir = "/persist/state/var/lib/forgejo"; stateDir = "/persist/state/var/lib/forgejo";
mailerPasswordFile = config.sops.secrets.forgejo_mail_password.path; 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) # See [the cheatsheet](https://docs.gitea.com/next/administration/config-cheat-sheet)
settings = { settings = {
session.COOKIE_SECURE = true; default.APP_NAME = "moonforge";
server = { server = {
DOMAIN = host; DOMAIN = host;
HTTP_PORT = port; HTTP_PORT = port;
@ -38,6 +38,7 @@ in
cron.ENABLED = true; cron.ENABLED = true;
service.DISABLE_REGISTRATION = true; service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
mailer = { mailer = {
ENABLED = true; ENABLED = true;

View file

@ -1,11 +1,24 @@
{ config, pkgs, ... }: { config, lib, pkgs, ... }:
# {{{ Jupyterhub/lab env let
let appEnv = pkgs.python3.withPackages (p: with p; [ # {{{ Jupyterhub/lab env
jupyterhub appEnv = pkgs.python3.withPackages (p: with p; [
jupyterlab jupyterhub
jupyterhub-systemdspawner jupyterlab
jupyter-collaboration 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 in
{ {
@ -33,6 +46,7 @@ in
numpy numpy
scipy scipy
matplotlib matplotlib
tabulate
])); ]));
in in
{ {