summaryrefslogtreecommitdiff
path: root/devenv.nix
blob: f91e94d07482ac9458c22c2d317414bf7d853ac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  pkgs,
  lib,
  config,
  ...
}:
{
  # https://devenv.sh/languages/
  languages.rust.enable = true;

  # https://devenv.sh/packages/
  packages = with pkgs; [ bacon wayland libxkbcommon ];

  env.LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (with pkgs; [ wayland libxkbcommon ]);

  # Format staged files on commit with treefmt; rustfmt handles Rust sources.
  treefmt.enable = true;
  treefmt.config.programs.rustfmt.enable = true;

  git-hooks.hooks.treefmt.enable = true;

  # See full reference at https://devenv.sh/reference/options/
}