mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-06-15 09:09:14 +02:00
flake.nix: add app for building gitea workflows locally
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user