Closed gcurtis closed 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.
nix.CurrentConfig
nix show-config --json
nix.Config
nixcache.IsUserTrusted
nix.Config.IsUserTrusted
Add a
nix.CurrentConfig
function that callsnix show-config --json
and unmarshals the result into anix.Config
struct. Move thenixcache.IsUserTrusted
function tonix.Config.IsUserTrusted
and implement handling of user groups.