gitea nixos cicd
This commit is contained in:
60
modules/servers/gitea-actions-runners/ryujinx.nix
Normal file
60
modules/servers/gitea-actions-runners/ryujinx.nix
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.servers.gitea;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.gitea-actions-runner.instances.ryujinx = {
|
||||
enable = true;
|
||||
url = cfg.url;
|
||||
name = "${config.networking.hostName}-ryujinx";
|
||||
tokenFile = config.sops.secrets.gitea.path;
|
||||
labels = [
|
||||
"ubuntu-latest:host"
|
||||
"ubuntu-20.04:host"
|
||||
];
|
||||
hostPackages =
|
||||
let
|
||||
python3 = pkgs.python3.withPackages (
|
||||
ps:
|
||||
builtins.attrValues {
|
||||
inherit (ps)
|
||||
pyyaml
|
||||
lxml
|
||||
;
|
||||
}
|
||||
);
|
||||
in
|
||||
builtins.attrValues {
|
||||
inherit python3;
|
||||
inherit (pkgs)
|
||||
bash
|
||||
coreutils
|
||||
curl
|
||||
gawk
|
||||
gitMinimal
|
||||
gnused
|
||||
nodejs
|
||||
wget
|
||||
gnutar
|
||||
gzip
|
||||
dotnet-sdk_8
|
||||
openal
|
||||
vulkan-loader
|
||||
libGL
|
||||
gtk3
|
||||
llvm_15
|
||||
rcodesign
|
||||
gh
|
||||
p7zip
|
||||
;
|
||||
inherit (pkgs.xorg) libX11;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user