21 lines
986 B
Nix
21 lines
986 B
Nix
|
|
# devenv.nix — required by devenv v2+.
|
||
|
|
#
|
||
|
|
# IHP's flake module (flake.nix) provides the full devenv shell via
|
||
|
|
# `inputs.devenv.flakeModule`: Haskell toolchain, PostgreSQL, ghcid,
|
||
|
|
# and RunDevServer. This file satisfies devenv v2's file-presence
|
||
|
|
# requirement and adds project-specific overrides on top.
|
||
|
|
#
|
||
|
|
# Duplicates the settings from flake.nix devenv.shells.default so they
|
||
|
|
# are applied under both devenv v1 (flake path) and devenv v2 (this file).
|
||
|
|
{ pkgs, lib, config, inputs, ... }:
|
||
|
|
{
|
||
|
|
# Resource limits for constrained host (2 CPU / 3.8 GiB RAM).
|
||
|
|
# -A32m: smaller minor heap, -M2g: hard heap ceiling.
|
||
|
|
# Note: -N1 omitted intentionally (requires -threaded, breaks IHP tools).
|
||
|
|
# GHC parallel module compilation is capped via -j1 in .ghci instead.
|
||
|
|
env.GHCRTS = "-A32m -M2g";
|
||
|
|
|
||
|
|
# Tailwind CSS watcher — not part of IHP's core devenv module.
|
||
|
|
processes.tailwind.exec = "tailwindcss -c tailwind/tailwind.config.js -i ./tailwind/app.css -o static/app.css --watch=always";
|
||
|
|
}
|