This commit is contained in:
Porta 2026-11-14 17:54:25 +10:00
parent 39ac00a2b5
commit e23cc83963
No known key found for this signature in database
5 changed files with 49 additions and 10 deletions

View file

@ -4,10 +4,26 @@
{ pkgs, user-parts, ... }:
{
imports = [ inputs.home-manager.nixosModules.home-manager ];
# fnm's zstd-sys dependency needs pkg-config and libzstd at build time.
nixpkgs.overlays = [
(final: prev: {
fnm = prev.fnm.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ final.pkg-config ];
buildInputs = (old.buildInputs or [ ]) ++ [ final.zstd ];
});
# The forced system-library hook lacks matching inputs in this package.
# Keep upstream's bundled libraries until nixpkgs supplies those inputs.
#codex = prev.codex.overrideAttrs (old: {
# dontCargoUseSystemLibs = true;
#});
})
];
environment.systemPackages = with pkgs; [
nixd
fnm
codex
#codex
bubblewrap
];
programs.nix-ld = {