une machine hydra-builder doit faire du garbage-collection régulièrement

This commit is contained in:
2017-05-22 10:42:16 +02:00
parent b15672c3ad
commit 8ee09217cb

View File

@@ -11,22 +11,32 @@ mkIf flags.hydra-builder {
# Paquets # Paquets
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
qemu
kvm kvm
qemu
virtualbox
]; ];
# Services # Services
## Services de virtualisation utilisé pour les tests hydra ## Services de virtualisation utilisé pour les tests hydra
virtualisation.docker.enable = true; virtualisation = {
virtualisation.libvirtd.enable = true; docker.enable = true;
virtualisation.libvirtd.enableKVM = true; libvirtd = {
#virtualisation.virtualbox.guest.enable = true; enable = true;
virtualisation.virtualbox.host.enable = true; enableKVM = true;
virtualisation.virtualbox.host.headless = true; };
virtualbox = {
#guest.enable = true;
host.enable = true;
host.headless = true;
};
};
## Ménage automatique tous les jours ## Ménage automatique tous les jours - Frequent garbage collection is a good idea for build machines.
nix.gc.automatic = true; nix.gc = {
automatic = true;
dates = "*:0/30";
};
# users.users."hydrabld" = { # users.users."hydrabld" = {
# description = "Execution des jobs hydra"; # description = "Execution des jobs hydra";