les services "activation manuelle" sont gérés par config-generator

extraction-donnees-privees
Jean-Pierre PRUNARET 9 years ago
parent 3d1feebee0
commit 0a8c503032

@ -2,6 +2,7 @@
{ {
# Automatic update & automatic clean # Automatic update & automatic clean
system.autoUpgrade.enable = true;
nix.gc.automatic = true; system.autoUpgrade.enable = config.r6d.config-generator.auto-upgrade;
nix.gc.automatic = config.r6d.config-generator.auto-upgrade;
} }

@ -4,8 +4,8 @@
imports = [ imports = [
]; ];
services.locate= { services.locate = {
enable = true; enable = config.r6d.config-generator.locate;
interval = "hourly"; interval = "hourly";
}; };
} }

@ -2,6 +2,7 @@
{ {
# Cache http pour le store # Cache http pour le store
services.nix-serve.enable = true;
networking.firewall.allowedTCPPorts = [5000]; services.nix-serve.enable = config.r6d.config-generator.nix-serve-server;
networking.firewall.allowedTCPPorts = pkgs.lib.mkIf config.r6d.config-generator.nix-serve-server [5000];
} }

@ -1,9 +1,10 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
# Gestion du swap
# https://en.wikipedia.org/wiki/Swappiness # https://en.wikipedia.org/wiki/Swappiness
boot.kernel.sysctl = { boot.kernel.sysctl = pkgs.lib.mkIf config.r6d.config-generator.swap {
# le swap est activé (!= 0) # le swap est activé (!= 0)
# le swap est utilisé lorsque (100 - x) % de la mémoire est déja allouée # le swap est utilisé lorsque (100 - x) % de la mémoire est déja allouée
"vm.swappiness" = 10; "vm.swappiness" = 10;

@ -2,12 +2,16 @@
{ {
imports = [ imports = [
#./activation-manuelle/auto-upgrade.nix
#./activation-manuelle/locate.nix
#./activation-manuelle/swap.nix
./environment.nix ./environment.nix
./localisation.nix ./localisation.nix
./networking.nix ./networking.nix
./services.nix ./services.nix
# inclusion conditionnelle
./config-generator.nix
./activation-manuelle/auto-upgrade.nix
./activation-manuelle/locate.nix
./activation-manuelle/nix-serve.nix
./activation-manuelle/swap.nix
]; ];
} }

Loading…
Cancel
Save