MCPcopy Index your code
hub / github.com/jetify-com/devbox / setupTask

Struct setupTask

internal/devbox/providers/nixcache/setup.go:72–75  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

70// ~root/.aws/config so that they can use their Devbox cache with the
71// Nix daemon.
72type setupTask struct {
73 // username is the OS username to trust.
74 username string
75}
76
77func (s *setupTask) NeedsRun(ctx context.Context, lastRun setup.RunInfo) bool {
78 if _, err := nix.DaemonVersion(ctx); err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected