flake: clean up modules
This commit is contained in:
parent
28f18c9a99
commit
8cd8b3a3f9
64 changed files with 258 additions and 273 deletions
|
@ -1,5 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, common, pkgs, ... }:
|
||||
let
|
||||
cfg = config.services.jupyter;
|
||||
|
||||
mkPythonKernel = displayName: env: {
|
||||
inherit displayName;
|
||||
language = "python";
|
||||
|
@ -53,10 +55,10 @@ in
|
|||
})
|
||||
];
|
||||
|
||||
services.nginx.virtualHosts."jupyter.internal.inx.moe" = config.common.nginx.ssl // {
|
||||
services.nginx.virtualHosts."jupyter.internal.inx.moe" = common.nginx.ssl // {
|
||||
listenAddresses = [ "100.101.102.124" ];
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString config.services.jupyter.port}";
|
||||
proxyPass = "http://localhost:${toString cfg.port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue