From ce0819a16c14068ee75c61fcc3a5b877e3c6ea22 Mon Sep 17 00:00:00 2001 From: Florian Schmitt Date: Tue, 17 Dec 2024 13:23:00 +0300 Subject: [PATCH] feat(inventory): nixin vm init runner and repos WIP --- inventory/nixin.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/inventory/nixin.nix b/inventory/nixin.nix index 67074b6..d0e7eeb 100644 --- a/inventory/nixin.nix +++ b/inventory/nixin.nix @@ -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 =