-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
57 lines (55 loc) · 1.39 KB
/
flake.nix
File metadata and controls
57 lines (55 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
description = "Obsidian notes vault flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {inherit system;};
in {
devShells = {
default = pkgs.mkShell {
packages = [
pkgs.mermaid-cli
pkgs.typst
pkgs.typst-lsp
pkgs.typstyle
pkgs.bun
(pkgs.python3.withPackages (pyPkgs: (with pyPkgs; [
ipykernel
jupyterlab
jupyterlab-server
matplotlib
numpy
pandas
scipy
pytest
scikit-learn
])))
pkgs.python312Packages.jupyterlab
pkgs.python312Packages.jupyterlab-server
pkgs.jupyter
pkgs.quarto
pkgs.black
pkgs.texlab
];
};
};
apps = {
backup = flake-utils.lib.mkApp {
drv = pkgs.writeShellApplication {
name = "backup";
text = builtins.readFile ./.scripts/backup.sh;
runtimeInputs = [];
};
};
};
}
);
}