flake.nix: add app for building gitea workflows locally

This commit is contained in:
h7x4
2026-06-06 04:02:52 +09:00
parent 88892115b5
commit ce0af2f6e4
+12
View File
@@ -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