option

nix.settings.allowed-users

A list of names of users (separated by whitespace) that are allowed to connect to the Nix daemon. As with nix.settings.trusted-users, you can specify groups by prefixing them with @. Also, you can allow all users by specifying *. The default is *. Note that trusted users are always allowed to connect.

Declarations
Type
list of string
Default
[
  "*"
]
Example
[
  "@admin"
  "@builders"
  "alice"
  "bob"
]