Update configuration.nix
This commit is contained in:
+1
-59
@@ -1,59 +1 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.isContainer = true;
|
||||
networking.hostName = "runner-nix";
|
||||
|
||||
# Correctif LXC
|
||||
systemd.suppressedSystemUnits = [
|
||||
"sys-kernel-debug.mount"
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
curl
|
||||
git
|
||||
vim
|
||||
];
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
storageDriver = "overlay2";
|
||||
|
||||
autoPrune = {
|
||||
enable = true;
|
||||
dates = "weekly";
|
||||
flags = [ "--all" ];
|
||||
};
|
||||
};
|
||||
|
||||
services.gitea-actions-runner = {
|
||||
package = pkgs.forgejo-runner;
|
||||
|
||||
instances.runner-lxc = {
|
||||
enable = true;
|
||||
name = "lxc-nixX-runner";
|
||||
url = "https://git.jst.ovh";
|
||||
tokenFile = "/var/lib/gitea-runner/token-file";
|
||||
|
||||
labels = [
|
||||
# Runner Ubuntu générique
|
||||
"ubuntu-latest:docker://catthehacker/ubuntu:act-latest"
|
||||
|
||||
# Runner spécialisé pour les builds Caddy
|
||||
"caddy-builder:docker://git.jst.ovh/docker/runners-images/caddy-builder:26.07"
|
||||
];
|
||||
|
||||
settings = {
|
||||
container = {
|
||||
# Donne accès au Docker Engine depuis les jobs conteneurisés.
|
||||
docker_host = "automount";
|
||||
|
||||
# Vérifie que la dernière version du tag 26.07 est utilisée.
|
||||
force_pull = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "26.05";
|
||||
}
|
||||
WRONG BRANCH
|
||||
Reference in New Issue
Block a user