diff options
Diffstat (limited to 'devenv.nix')
| -rw-r--r-- | devenv.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devenv.nix b/devenv.nix new file mode 100644 index 0000000..f91e94d --- /dev/null +++ b/devenv.nix @@ -0,0 +1,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/ +} |
