tpwrules / nixos-apple-silicon

Resources to install NixOS bare metal on Apple Silicon Macs
MIT License
757 stars 76 forks source link

Pure nix regex parser for the kernel config #51

Closed oati closed 1 year ago

oati commented 1 year ago

The kernel package currently depends on an IFD (import from derivation) to parse the kernel config file.

The file is simple enough that it should be easily doable using pure nix with filter, map, regex match, etc.

This should be upstreamed to nixpkgs if resolved.

tpwrules commented 1 year ago

That would be fantastic, I never liked the IFD there and it would resolve the localPkgs hack.

Is this something you intend to tackle now that the reorganization has been merged? If not, I will try to play with it at some point.

oati commented 1 year ago

I have a friend who's been wanting to work on this. I think they'll work on a PR soon.

anna328p commented 1 year ago

See https://github.com/tpwrules/nixos-apple-silicon/pull/70#issuecomment-1537622456