Skip to content

Commit

Permalink
Test jupyter service from Nixpkgs PR
Browse files Browse the repository at this point in the history
NixOS/nixpkgs#367106
Signed-off-by: John Titor <[email protected]>
  • Loading branch information
JohnRTitor committed Jan 4, 2025
1 parent c7665dc commit b6c504a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 15 deletions.
1 change: 1 addition & 0 deletions dev-environment/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# and contains a lot of prebuilt packages
# configured in home manager

./jupyter.nix
# ./deprecated/c-toolchain.nix
# ./deprecated/php.nix
]
Expand Down
6 changes: 6 additions & 0 deletions dev-environment/jupyter.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{pkgs, ...}:
{
services.jupyter.enable = true;
services.jupyter.password = "argon2:$argon2id$v=19$m=10240,t=10,p=8$PxYTOOaulhqndkeAsBaiVQ$cwS31ODwiduBmA59YYTfh2q8SbMBGH93iDjU5tcQ8kU"; # test
#services.jupyter.notebookDir = "Notebooks";
}
30 changes: 15 additions & 15 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
nixpkgs.url = "nixpkgs/nixos-unstable"; # Unstable NixOS system (default)
nixpkgs-edge.url = "nixpkgs/nixos-unstable-small"; # For latest packages
nixpkgs-master.url = "nixpkgs/master"; # Testing branch of nixpkgs
nixpkgs-jupyter-service-fix.url = "github:nixos/nixpkgs/refs/pull/367106/merge";

flake-parts = {
url = "github:hercules-ci/flake-parts"; # Flake parts for easy flake management
Expand Down
5 changes: 5 additions & 0 deletions modules-overlays/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
}: {
imports = [
#./amdgpu.nix # import modules here to test
"${inputs.nixpkgs-jupyter-service-fix}/nixos/modules/services/development/jupyter/default.nix"
];

disabledModules = [
"${inputs.nixpkgs}/nixos/modules/services/development/jupyter/default.nix"
];

nixpkgs.overlays = [
Expand Down

0 comments on commit b6c504a

Please sign in to comment.