feat(inventory): nixin vm init runner and repos WIP

This commit is contained in:
Florian Schmitt 2024-12-17 13:23:00 +03:00
parent 5544bed59a
commit ce0819a16c

View file

@ -185,17 +185,20 @@ in
mail = "root@forge.chmok.net";
in
''
# create admin
${adminCmd} create --admin --email "${mail}" --username ${user} --password "${pwd}" || true
## uncomment this line to change an admin user which was already created
# ${adminCmd} change-password --username ${user} --password "${pwd}" || true
# create admin
${adminCmd} create --admin --email "${mail}" --username ${user} --password "${pwd}" || true
## uncomment this line to change an admin user which was already created
# ${adminCmd} change-password --username ${user} --password "${pwd}" || true
# link forgejo runner and forgejo
${forgejoCmd} || true
# link forgejo runner and forgejo
${forgejoCmd} forgejo-cli actions register --keep-labels --name nixin-runner \
--secret 7c31591e8b67225a116d4a4519ea8e507e08f71f || true
# create nixin repository
# forgejo-runner create-runner-file --instance https://example.conf \
# --secret 7c31591e8b67225a116d4a4519ea8e507e08f71f
# create nixin repository
# create password-store repository
# create password-store repository
'';
environment.systemPackages =