1
Fork 0

Prepare calypso install

This commit is contained in:
prescientmoon 2024-08-26 17:38:47 +02:00
commit 454aae8f88
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
36 changed files with 707 additions and 285 deletions
hosts/nixos/lapetus/services

View file

@ -1,15 +1,22 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
# {{{ Jupyterhub/lab env
appEnv = pkgs.python3.withPackages (p: with p; [
jupyterhub
jupyterlab
jupyterhub-systemdspawner
jupyter-collaboration
jupyterlab-git
]);
# }}}
appEnv = pkgs.python3.withPackages (
p: with p; [
jupyterhub
jupyterlab
jupyterhub-systemdspawner
jupyter-collaboration
jupyterlab-git
]
);
in
# }}}
{
systemd.services.jupyterhub.path = [
pkgs.texlive.combined.scheme-full # LaTeX stuff is useful for matplotlib
@ -25,8 +32,8 @@ in
# {{{ Spwaner & auth config
extraConfig = ''
c.Authenticator.allowed_users = {'adrielus', 'javi'}
c.Authenticator.admin_users = {'adrielus'}
c.Authenticator.allowed_users = {'${config.users.users.pilot.name}', 'javi'}
c.Authenticator.admin_users = {'${config.users.users.pilot.name}'}
c.Spawner.notebook_dir='${config.users.users.pilot.home}/projects/notebooks'
c.SystemdSpawner.mem_limit = '2G'
@ -35,13 +42,18 @@ in
# }}}
# {{{ Python 3 kernel
kernels.python3 =
let env = (pkgs.python3.withPackages (p: with p; [
ipykernel
numpy
scipy
matplotlib
tabulate
]));
let
env = (
pkgs.python3.withPackages (
p: with p; [
ipykernel
numpy
scipy
matplotlib
tabulate
]
)
);
in
{
displayName = "Numerical mathematics setup";