Monorepo for Tangled tangled.org

spindle/models: set HOME to /tangled/workspace

This should hopefully dissuade nix from trying to create a
/homeless-shelter.

Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>

anirudh.fi 09e5931b d2134de3

verified
Changed files
+4 -3
spindle
models
+1 -1
go.mod
··· 24 24 github.com/gorilla/sessions v1.4.0 25 25 github.com/gorilla/websocket v1.5.3 26 26 github.com/hiddeco/sshsig v0.2.0 27 + github.com/hpcloud/tail v1.0.0 27 28 github.com/ipfs/go-cid v0.5.0 28 29 github.com/lestrrat-go/jwx/v2 v2.1.6 29 30 github.com/mattn/go-sqlite3 v1.14.24 ··· 82 83 github.com/hashicorp/go-retryablehttp v0.7.7 // indirect 83 84 github.com/hashicorp/golang-lru v1.0.2 // indirect 84 85 github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect 85 - github.com/hpcloud/tail v1.0.0 // indirect 86 86 github.com/ipfs/bbloom v0.0.4 // indirect 87 87 github.com/ipfs/boxo v0.30.0 // indirect 88 88 github.com/ipfs/go-block-format v0.2.1 // indirect
+3 -2
spindle/models/pipeline.go
··· 53 53 swf.Image = workflowImage(twf.Dependencies, cfg.Pipelines.Nixery) 54 54 55 55 swf.addNixProfileToPath() 56 - swf.enableNixFlakes() 56 + swf.setGlobalEnvs() 57 57 setup := &setupSteps{} 58 58 59 59 setup.addStep(nixConfStep()) ··· 103 103 wf.Environment["PATH"] = "$PATH:/.nix-profile/bin" 104 104 } 105 105 106 - func (wf *Workflow) enableNixFlakes() { 106 + func (wf *Workflow) setGlobalEnvs() { 107 107 wf.Environment["NIX_CONFIG"] = "experimental-features = nix-command flakes" 108 + wf.Environment["HOME"] = "/tangled/workspace" 108 109 }