forked from tangled.org/core
this repo has no description

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
···
github.com/gorilla/sessions v1.4.0
github.com/gorilla/websocket v1.5.3
github.com/hiddeco/sshsig v0.2.0
+
github.com/hpcloud/tail v1.0.0
github.com/ipfs/go-cid v0.5.0
github.com/lestrrat-go/jwx/v2 v2.1.6
github.com/mattn/go-sqlite3 v1.14.24
···
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/hashicorp/golang-lru v1.0.2 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
-
github.com/hpcloud/tail v1.0.0 // indirect
github.com/ipfs/bbloom v0.0.4 // indirect
github.com/ipfs/boxo v0.30.0 // indirect
github.com/ipfs/go-block-format v0.2.1 // indirect
+3 -2
spindle/models/pipeline.go
···
swf.Image = workflowImage(twf.Dependencies, cfg.Pipelines.Nixery)
swf.addNixProfileToPath()
-
swf.enableNixFlakes()
+
swf.setGlobalEnvs()
setup := &setupSteps{}
setup.addStep(nixConfStep())
···
wf.Environment["PATH"] = "$PATH:/.nix-profile/bin"
}
-
func (wf *Workflow) enableNixFlakes() {
+
func (wf *Workflow) setGlobalEnvs() {
wf.Environment["NIX_CONFIG"] = "experimental-features = nix-command flakes"
+
wf.Environment["HOME"] = "/tangled/workspace"
}