les services "activation manuelle" sont gérés par config-generator
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
{
|
||||
# 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 = [
|
||||
];
|
||||
|
||||
services.locate= {
|
||||
enable = true;
|
||||
services.locate = {
|
||||
enable = config.r6d.config-generator.locate;
|
||||
interval = "hourly";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
{
|
||||
# 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, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Gestion du swap
|
||||
|
||||
# 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 utilisé lorsque (100 - x) % de la mémoire est déja allouée
|
||||
"vm.swappiness" = 10;
|
||||
|
||||
Reference in New Issue
Block a user