-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
63 lines (58 loc) · 1.54 KB
/
flake.nix
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
58
59
60
61
62
63
{
description = "Configuration";
inputs = {
nixos-2405.url = "github:nixos/nixpkgs?ref=nixos-24.05";
nixos-2411.url = "github:nixos/nixpkgs?ref=nixos-24.11";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixos-2405, nixos-2411, utils } @ inputs: rec {
nixosConfigurations."fr-desktop" = nixos-2405.lib.nixosSystem {
system = "x86_64-linux";
modules = [
(import ./machines/fr-desktop/default.nix)
#(builtins.toPath "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")
];
# specialArgs = { inherit inputs; };
};
nixosConfigurations."fr-yoga" = nixos-2411.lib.nixosSystem {
system = "x86_64-linux";
modules = [ (import ./machines/fr-yoga/default.nix) ];
# specialArgs = { inherit inputs; };
};
#packages.x86_64-linux.defaultPackage = nixosConfigurations."fr-desktop";
} // (utils.lib.eachSystem ["x86_64-linux" ] (system: rec {
packages = let
nixpkgs = nixos-2405;
in {
pythonEnv = nixpkgs.legacyPackages.${system}.python3.withPackages(ps: with ps; [
acoustics
bokeh
dask
datashader
flit
graphviz
holoviews
h5py
hvplot
ipython
jupyterlab
line_profiler
matplotlib
memory_profiler
netcdf4
notebook
numba
pandas
param
panel
pytest
scikitlearn
scipy
seaborn
toolz
xarray
zarr
]);
};
}));
}