Compare commits
9 Commits
fb0376e0b9
...
bc5921c3a1
| Author | SHA1 | Date | |
|---|---|---|---|
| bc5921c3a1 | |||
| db4ca56cae | |||
| 859f2f653e | |||
| e35c43027a | |||
| 776e3dcc3b | |||
| 22da6ac0c3 | |||
| 1337ce06ab | |||
| 726edef18b | |||
| cefe7caa1c |
@@ -286,6 +286,73 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.gitea-actions-runner = {
|
||||||
|
instances.infrastructure = {
|
||||||
|
enable = true;
|
||||||
|
name = "infrastructure-runner";
|
||||||
|
url = "https://git.alexmickelson.guru";
|
||||||
|
tokenFile = "/data/runner/gitea-infrastructure-token.txt";
|
||||||
|
labels = [
|
||||||
|
"home-server"
|
||||||
|
"ubuntu-latest:docker://catthehacker/ubuntu:act-latest"
|
||||||
|
];
|
||||||
|
hostPackages = with pkgs; [
|
||||||
|
docker
|
||||||
|
git
|
||||||
|
git-secret
|
||||||
|
zfs
|
||||||
|
sanoid
|
||||||
|
mbuffer
|
||||||
|
lzop
|
||||||
|
kubectl
|
||||||
|
kubernetes-helm
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.gitea-runner-infrastructure.serviceConfig = {
|
||||||
|
|
||||||
|
ReadWritePaths = [
|
||||||
|
"/data/cloudflare/"
|
||||||
|
"/data/runner/infrastructure"
|
||||||
|
"/data/runner"
|
||||||
|
"/home/github/infrastructure"
|
||||||
|
];
|
||||||
|
|
||||||
|
PrivateDevices = false;
|
||||||
|
DeviceAllow = [ "/dev/zfs rw" ];
|
||||||
|
|
||||||
|
ProtectProc = "default";
|
||||||
|
ProtectSystem = false;
|
||||||
|
PrivateMounts = false;
|
||||||
|
PrivateUsers = false;
|
||||||
|
ProtectHome = false;
|
||||||
|
|
||||||
|
Restart = lib.mkForce "always";
|
||||||
|
};
|
||||||
|
users.users.gitea-runner = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Gitea Actions Runner";
|
||||||
|
home = "/home/gitea-runner";
|
||||||
|
createHome = true;
|
||||||
|
extraGroups = [ "docker" ];
|
||||||
|
packages = with pkgs; [
|
||||||
|
kubernetes-helm
|
||||||
|
];
|
||||||
|
shell = pkgs.bashInteractive;
|
||||||
|
};
|
||||||
|
# users.users.github = {
|
||||||
|
# isNormalUser = true;
|
||||||
|
# description = "github";
|
||||||
|
# extraGroups = [ "docker" ];
|
||||||
|
# shell = pkgs.fish;
|
||||||
|
# packages = with pkgs; [
|
||||||
|
# kubernetes-helm
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user