8 Commits
Author SHA1 Message Date
jean.staffe 55ff5eba30 New Runner 2026-07-25 23:14:41 +00:00
jean.staffe 44783dad1d revert c7388820a4
revert Update configuration.nix
2026-07-25 22:56:02 +00:00
jean.staffe c7388820a4 Update configuration.nix 2026-07-25 22:51:25 +00:00
jean.staffe f72282fc9f Update configuration.nix 2026-07-25 22:44:40 +00:00
jean.staffe dfb5d9461b Update configuration.nix 2026-07-25 22:36:29 +00:00
jean.staffe 7f78962179 Update configuration.nix 2026-07-25 22:18:46 +00:00
jean.staffe 1da6843a1e Update configuration.nix 2026-07-25 22:11:32 +00:00
jean.staffe 8c6e26fe58 Update configuration.nix 2026-07-24 11:30:38 +00:00
+33 -6
View File
@@ -4,33 +4,60 @@
boot.isContainer = true;
networking.hostName = "runner-nix";
# LXC patch
systemd.suppressedSystemUnits = [ "sys-kernel-debug.mount" ];
# Correctif LXC
systemd.suppressedSystemUnits = [
"sys-kernel-debug.mount"
];
environment.systemPackages = with pkgs; [
curl
git
vim
curl
];
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";
name = "lxc-nix1-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 = {
# Monte le socket Docker du LXC dans les jobs.
docker_host = "automount";
# Place le workspace dans un véritable répertoire du LXC.
# Les conteneurs lancés depuis un workflow peuvent monter $PWD.
bind_workdir = true;
# Vérifie les mises à jour des images avant chaque job.
force_pull = true;
};
};
};
};
system.stateVersion = "26.05";
}
}