-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
52 lines (48 loc) · 1.38 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
{
inputs = {
# nixpkgs.url = "github:NixOS/nixpkgs/unstable";
# https://nixpk.gs/pr-tracker.html?pr=383902
nixpkgs.url = "github:NixOS/nixpkgs/staging";
devenv.url = "github:cachix/devenv";
};
outputs =
inputs@{ flake-parts, nixpkgs, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ inputs.devenv.flakeModule ];
systems = nixpkgs.lib.systems.flakeExposed;
perSystem =
{
lib,
pkgs,
...
}:
{
# Per-system attributes can be defined here. The self' and inputs'
# module parameters provide easy access to attributes of the same
# system.
devenv.shells.default = {
# https://devenv.sh/reference/options/
dotenv.disableHint = true;
languages.rust.enable = true;
languages.rust.mold.enable = false;
# packages = with pkgs; [ ];
env = {
LD_LIBRARY_PATH = lib.makeLibraryPath (
with pkgs;
[
libGL
libxkbcommon
vulkan-loader
wayland
xorg.libXcursor
xorg.libXrandr
xorg.libXi
xorg.libX11
]
);
RUST_LOG = "info";
};
};
};
};
}