docker gitea runner
This commit is contained in:
23
modules/nix/gitea-actions-runners/docker.nix
Normal file
23
modules/nix/gitea-actions-runners/docker.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.servers.gitea;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf (cfg.enable && config.my.secureHost) {
|
||||||
|
services.gitea-actions-runner.instances.docker = {
|
||||||
|
inherit (cfg) url enable;
|
||||||
|
name = "${config.networking.hostName}-docker";
|
||||||
|
tokenFile = config.sops.secrets.gitea.path;
|
||||||
|
labels = [
|
||||||
|
"ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:full-latest"
|
||||||
|
"ubuntu-24.04:docker://ghcr.io/catthehacker/ubuntu:full-24.04"
|
||||||
|
"ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:full-22.04"
|
||||||
|
"ubuntu-20.04:docker://ghcr.io/catthehacker/ubuntu:full-20.04"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -11,6 +11,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../nix/gitea-actions-runners/nixos.nix
|
../nix/gitea-actions-runners/nixos.nix
|
||||||
|
../nix/gitea-actions-runners/docker.nix
|
||||||
];
|
];
|
||||||
options.my.servers.gitea = setup.mkOptions "gitea" "git" 9083;
|
options.my.servers.gitea = setup.mkOptions "gitea" "git" 9083;
|
||||||
config = lib.mkIf (cfg.enable && config.my.secureHost) {
|
config = lib.mkIf (cfg.enable && config.my.secureHost) {
|
||||||
|
|||||||
Reference in New Issue
Block a user