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

nixos-19.09
Jean-Pierre PRUNARET 8 years ago
parent b15672c3ad
commit 8ee09217cb

@ -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";

Loading…
Cancel
Save