Compare commits

..

2 Commits

Author SHA1 Message Date
2b097045bc Add standard nix files and nix-ld 2022-10-20 10:31:00 +02:00
a05122c8bc Run jupyter automatically in python datasci 2022-10-20 10:29:28 +02:00
2 changed files with 17 additions and 20 deletions

View File

@@ -1,23 +1,14 @@
{ {
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small"; description = "";
outputs = inputs.flake-utils.url = "github:numtide/flake-utils";
{ self, nixpkgs, ... }:
let
system = "x86_64-linux";
in
{
devShells."${system}".default =
let
pkgs = import nixpkgs {
inherit system;
};
in
pkgs.mkShell {
packages = with pkgs; [
];
shellHook = ""; outputs = { self, nixpkgs, flake-utils }:
}; flake-utils.lib.eachDefaultSystem
}; (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
devShell = import ./shell.nix { inherit pkgs; };
}
);
} }

View File

@@ -2,7 +2,7 @@
with pkgs; with pkgs;
{ mkShell {
buildInputs = [ buildInputs = [
python3 python3
python3Packages.jupyter python3Packages.jupyter
@@ -12,4 +12,10 @@ with pkgs;
python3Packages.matplotlib python3Packages.matplotlib
python3Packages.seaborn python3Packages.seaborn
]; ];
shellHook = ''
trap "kill 0" EXIT
jupyter notebook
'';
} }