Files
desktop-app/devenv.nix
T

55 lines
855 B
Nix

{ pkgs, ... }:
{
env.DATABASE_URL = "./aperture.db";
packages =
with pkgs;
[
sqlite
]
++ lib.optionals pkgs.stdenv.isLinux [
glib
pango
cairo
atk
gtk3
gdk-pixbuf
libsoup_3
webkitgtk_4_1
pkg-config
inotify-tools
strace
];
languages = {
javascript = {
enable = true;
lsp.enable = true;
bun = {
enable = true;
install.enable = true;
};
};
rust = {
enable = true;
lsp.enable = true;
components = [
"rustc"
"cargo"
"clippy"
"rustfmt"
"rust-analyzer"
];
};
};
git-hooks.hooks = {
shellcheck.enable = true;
prettier.enable = true;
nixfmt.enable = true;
};
# See full reference at https://devenv.sh/reference/options/
}