Compare commits

...

17 commits

Author SHA1 Message Date
bb9eef9078 Merge branch 'stitching' of git.fediversity.eu:kiara/Fediversity into stitching 2025-03-18 15:45:17 +01:00
1164518a48 Add infinite spinner 2025-03-18 15:42:07 +01:00
f50ee049f2
import the regular way, fixing error: attribute 'age' missing 2025-03-17 15:13:23 +01:00
e872b3fde0
comment fediversity.eu option as its subdomains named after our services are used for production instances
08d109cc82/services/fediversity/sharedOptions.nix (L44)
2025-03-17 15:13:23 +01:00
42a0a798e7
pass in dummy initialUser to trigger orchestration from the panel 2025-03-17 15:13:23 +01:00
98b3947a8e
default form to .net as .eu subdomains are used for live services 2025-03-17 15:13:23 +01:00
7c5259181f
add openssh to devshell, as seemingly needed to trigger nixops4 by flake in django 2025-03-17 15:13:23 +01:00
782bbc4d8e
move from documenting to automating configurable-impure-env 2025-03-17 15:13:23 +01:00
2a8ae9d320
pass flake path as inputs.self.outPath? 2025-03-17 15:13:23 +01:00
5355e57378
WIP: change env to environment 2025-03-17 15:13:23 +01:00
76ff180ca7
use imputs over self 2025-03-17 15:13:23 +01:00
ae08673c1b
pass self thru in flake 2025-03-17 15:13:23 +01:00
e86712beec
Remove addding nixpkgs (did not fix the issue) 2025-03-17 15:13:23 +01:00
cc5101063b
Pass REPO_DIR implicitly 2025-03-17 15:13:23 +01:00
6bc3016585
add NIX_DIR 2025-03-17 15:13:23 +01:00
fcbbce0405
Convert configuration form to json
WIP: Get nix in scope
2025-03-17 15:13:23 +01:00
1411136f75
WIP: trigger nixops from panel
Closes #76.

Note I had not yet manage to successfully test this.

Manually trying the parameterized NixOps4 I tried using the following
command, tho I had yet to get this to work as well:

```sh
DEPLOYMENT='{"domain": "fediversity.net", "mastodon": {"enable": false},
"pixelfed": {"enable": true}, "peertube": {"enable": false}}' nix
develop --extra-experimental-features "configurable-impure-env"
--command nixops4 apply test
```

(or rather, I used a hardcoded Nix here so as to make it not use Lix.)

So far this had failed for me with:

```
the following units failed:
acme-mastodon.web.garage.fediversity.net.service
...
nixops4 error: Failed to create resource garage-configuration
```
2025-03-17 15:13:23 +01:00
2 changed files with 25 additions and 0 deletions

View file

@ -3,3 +3,24 @@ body
margin: 0
font-family: sans-serif
box-sizing: border-box
.loader
width: 48px
height: 48px
border: 5px solid #000
border-bottom-color: #FF3D00
border-radius: 50%
display: inline-block
box-sizing: border-box
animation: rotation 1s linear infinite
@keyframes rotation
0% { transform: rotate(0deg) }
100% { transform: rotate(360deg) }
#spinner-container
position: absolute
top: 50%
left: 50%
transform: translate(-50%, -50%)
display: block

View file

@ -7,5 +7,9 @@
<button class="button" type="submit" name="deploy">Deploy</button>
<button class="button" type="submit" name="save">Save</button>
<div id="spinner-container">
<span class="loader"></span>
</div>
</form>
{% endblock %}