forked from Fediversity/Fediversity
move tf init out of python over read-only nix env
This commit is contained in:
parent
c1aa71e319
commit
b3e783d4a5
2 changed files with 7 additions and 9 deletions
|
@ -7,3 +7,10 @@
|
||||||
```sh
|
```sh
|
||||||
echo "{\"nixos-anywhere\": $(nix-instantiate --eval --json -E '(import ../npins).nixos-anywhere.outPath')}" > .auto.tfvars.json
|
echo "{\"nixos-anywhere\": $(nix-instantiate --eval --json -E '(import ../npins).nixos-anywhere.outPath')}" > .auto.tfvars.json
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### local development
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ nix-shell
|
||||||
|
$ tofu init
|
||||||
|
```
|
||||||
|
|
|
@ -147,15 +147,6 @@ class DeploymentStatus(ConfigurationForm):
|
||||||
}
|
}
|
||||||
cwd = f"{settings.repo_dir}/launch"
|
cwd = f"{settings.repo_dir}/launch"
|
||||||
# FIXME: move init to packaging phase
|
# FIXME: move init to packaging phase
|
||||||
cmd = [
|
|
||||||
"tofu",
|
|
||||||
# f"-chdir={cwd}",
|
|
||||||
"init",
|
|
||||||
"-get=false",
|
|
||||||
"-input=false",
|
|
||||||
# "-plugin-dir=...",
|
|
||||||
]
|
|
||||||
subprocess.run(cmd, cwd=cwd, env=env)
|
|
||||||
cmd = [
|
cmd = [
|
||||||
"tofu",
|
"tofu",
|
||||||
# f"-chdir={cwd}",
|
# f"-chdir={cwd}",
|
||||||
|
|
Loading…
Add table
Reference in a new issue