setupTask adds the user to Nix's trusted-users list and updates ~root/.aws/config so that they can use their Devbox cache with the Nix daemon.
| 70 | // ~root/.aws/config so that they can use their Devbox cache with the |
| 71 | // Nix daemon. |
| 72 | type setupTask struct { |
| 73 | // username is the OS username to trust. |
| 74 | username string |
| 75 | } |
| 76 | |
| 77 | func (s *setupTask) NeedsRun(ctx context.Context, lastRun setup.RunInfo) bool { |
| 78 | if _, err := nix.DaemonVersion(ctx); err != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected