60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.servers.gitea;
|
|
in
|
|
{
|
|
config = lib.mkIf (cfg.enable && config.my.secureHost) {
|
|
services.gitea-actions-runner.instances.ryujinx = {
|
|
inherit (cfg) url enable;
|
|
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.xorg) libX11;
|
|
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
|
|
;
|
|
};
|
|
};
|
|
};
|
|
}
|