From ce0af2f6e4f22ee21190ec1324d64aa756f6bff0 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 6 Jun 2026 04:02:52 +0900 Subject: [PATCH] flake.nix: add app for building gitea workflows locally --- flake.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/flake.nix b/flake.nix index d8ce428..1196058 100644 --- a/flake.nix +++ b/flake.nix @@ -95,6 +95,18 @@ ]; }); + apps = forAllSystems (system: let + pkgs = nixpkgs.legacyPackages.${system}; + in { + gitea-workflows = { + type = "app"; + meta.description = "Run all gitea workflows locally"; + program = toString (pkgs.writeShellScript "pvv-nixos-config-run-gitea-worflows" '' + ${lib.getExe pkgs.gitea-actions-runner} exec -i node:current-trixie + ''); + }; + }); + nixosConfigurations = let nixosConfig = nixpkgs: name: configurationPath: extraArgs @ { localSystem ? "x86_64-linux", # buildPlatform