Compare commits

..

3 Commits

Author SHA1 Message Date
Yves Dubromelle
f6b939ffa9 ajout de politique d'énergie pour laptop 2016-07-15 11:59:39 +02:00
Yves Dubromelle
aa48575f58 déplacement de l'activation de nixos server vers phenom 2016-07-15 11:37:52 +02:00
a920200904 ajout machine xray 2016-07-13 23:19:04 +02:00
2 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
{ config, pkgs, ... }:
{
# Gestion spécifique pour PC portable
powerManagement.cpuFreqGovernor = pkgs.lib.mkIf config.r6d.config-generator.laptop "powersave";
}

View File

@@ -12,6 +12,7 @@ in
{
imports = [
./activation-manuelle/auto-upgrade.nix
./activation-manuelle/laptop.nix
./activation-manuelle/locate.nix
./activation-manuelle/fail2ban.nix
./activation-manuelle/nix-serve-client.nix
@@ -56,6 +57,7 @@ in
isNeoNomade = mkEnableOption "Identification du nom de machine.";
isPhenom = mkEnableOption "Identification du nom de machine.";
isRadx = mkEnableOption "Identification du nom de machine.";
isXray = mkEnableOption "Identification du nom de machine.";
};
};
@@ -72,6 +74,7 @@ in
isNeoNomade = host == "neo-nomade.dubronetwork.fr";
isPhenom = host == "phenom.dubronetwork.fr";
isRadx = host == "radx.prunetwork.fr";
isXray = host == "xray.prunetwork.fr";
};
}
@@ -102,7 +105,6 @@ in
r6d.config-generator.nix-serve-server = true;
})
(mkIf (pfl.isDubronetwork && pfl.isWorkstation) {
r6d.config-generator.nix-serve-server = true;
r6d.config-generator.virtualbox = true;
})
(mkIf pfl.isPrunetwork {
@@ -124,6 +126,10 @@ in
virtualbox = true;
};
})
(mkIf comp.isXray {
r6d.profiles.isPrunetwork = true;
r6d.profiles.isServer = true;
})
(mkIf comp.isLatitude {
r6d.profiles.isDubronetwork = true;
@@ -152,6 +158,8 @@ in
r6d.profiles.isDubronetwork = true;
r6d.profiles.isHome = true;
r6d.profiles.isWorkstation = true;
r6d.config-generator.nix-serve-server = true;
})
];
}