Compare commits
2 commits
b2d87bbfbe
...
b4ded5b2ce
Author | SHA1 | Date | |
---|---|---|---|
|
b4ded5b2ce | ||
|
e2c4237b36 |
2 changed files with 22 additions and 13 deletions
|
@ -1,34 +1,35 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let url = "https://git.dgnum.eu";
|
||||
let
|
||||
url = "https://git.dgnum.eu";
|
||||
|
||||
mkRunner = { labels, name, token }: {
|
||||
enable = true;
|
||||
|
||||
inherit name labels token url;
|
||||
|
||||
settings.container = {
|
||||
network = "host";
|
||||
options = [ "--cpus=4" ];
|
||||
};
|
||||
};
|
||||
in {
|
||||
services.gitea-actions-runner = {
|
||||
package = pkgs.forgejo-actions-runner;
|
||||
|
||||
instances = {
|
||||
instances = builtins.mapAttrs (_: mkRunner) {
|
||||
runner01 = {
|
||||
enable = true;
|
||||
|
||||
inherit url;
|
||||
token = "qT9nZXKgLcb3fWOj7VTj3S58raiCWwF0weuIIKlY";
|
||||
name = "storage01 [debian]";
|
||||
|
||||
labels = [ "debian-latest:docker://node:20-bookworm" ];
|
||||
|
||||
settings = { container.network = "host"; };
|
||||
};
|
||||
|
||||
runner02 = {
|
||||
enable = true;
|
||||
|
||||
inherit url;
|
||||
token = "m0rUDBxxkMb6xLTmPFwIieHswJFROqPFByPlT3V9";
|
||||
name = "storage01 [debian]";
|
||||
|
||||
labels = [ "debian-latest:docker://node:20-bookworm" ];
|
||||
|
||||
settings = { container.network = "host"; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -41,4 +42,12 @@ in {
|
|||
ipv6_enabled = true;
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.containers.storage.settings = {
|
||||
storage = {
|
||||
driver = "overlay";
|
||||
graphroot = "/data/slow/containers/storage";
|
||||
runroot = "/run/containers/storage";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -48,5 +48,5 @@ pkgs.mkShell {
|
|||
(sources.disko + "/package.nix")
|
||||
])) ++ (import ./scripts { inherit pkgs; });
|
||||
|
||||
allowSubstitutes = false;
|
||||
preferLocalBuild = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue