jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
7.94k stars 191 forks source link

internal/nix/config: generalize config parsing #1988

Closed gcurtis closed 3 months ago

gcurtis commented 3 months ago

Add a nix.CurrentConfig function that calls nix show-config --json and unmarshals the result into a nix.Config struct. Move the nixcache.IsUserTrusted function to nix.Config.IsUserTrusted and implement handling of user groups.