From 8ee09217cb67faba7ed8d7132f6e799d4bc258b9 Mon Sep 17 00:00:00 2001 From: Jean-Pierre PRUNARET Date: Mon, 22 May 2017 10:42:16 +0200 Subject: [PATCH] =?UTF-8?q?une=20machine=20hydra-builder=20doit=20faire=20?= =?UTF-8?q?du=20garbage-collection=20r=C3=A9guli=C3=A8rement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/hydra-build.nix | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/services/hydra-build.nix b/services/hydra-build.nix index add6631..43ccdce 100644 --- a/services/hydra-build.nix +++ b/services/hydra-build.nix @@ -11,22 +11,32 @@ mkIf flags.hydra-builder { # Paquets environment.systemPackages = with pkgs; [ - qemu kvm + qemu + virtualbox ]; # Services ## Services de virtualisation utilisé pour les tests hydra - virtualisation.docker.enable = true; - virtualisation.libvirtd.enable = true; - virtualisation.libvirtd.enableKVM = true; - #virtualisation.virtualbox.guest.enable = true; - virtualisation.virtualbox.host.enable = true; - virtualisation.virtualbox.host.headless = true; + virtualisation = { + docker.enable = true; + libvirtd = { + enable = true; + enableKVM = true; + }; + virtualbox = { + #guest.enable = true; + host.enable = true; + host.headless = true; + }; + }; - ## Ménage automatique tous les jours - nix.gc.automatic = true; + ## Ménage automatique tous les jours - Frequent garbage collection is a good idea for build machines. + nix.gc = { + automatic = true; + dates = "*:0/30"; + }; # users.users."hydrabld" = { # description = "Execution des jobs hydra";