Compare commits

...

2 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
2 changed files with 9 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 = [ imports = [
./activation-manuelle/auto-upgrade.nix ./activation-manuelle/auto-upgrade.nix
./activation-manuelle/laptop.nix
./activation-manuelle/locate.nix ./activation-manuelle/locate.nix
./activation-manuelle/fail2ban.nix ./activation-manuelle/fail2ban.nix
./activation-manuelle/nix-serve-client.nix ./activation-manuelle/nix-serve-client.nix
@@ -104,7 +105,6 @@ in
r6d.config-generator.nix-serve-server = true; r6d.config-generator.nix-serve-server = true;
}) })
(mkIf (pfl.isDubronetwork && pfl.isWorkstation) { (mkIf (pfl.isDubronetwork && pfl.isWorkstation) {
r6d.config-generator.nix-serve-server = true;
r6d.config-generator.virtualbox = true; r6d.config-generator.virtualbox = true;
}) })
(mkIf pfl.isPrunetwork { (mkIf pfl.isPrunetwork {
@@ -158,6 +158,8 @@ in
r6d.profiles.isDubronetwork = true; r6d.profiles.isDubronetwork = true;
r6d.profiles.isHome = true; r6d.profiles.isHome = true;
r6d.profiles.isWorkstation = true; r6d.profiles.isWorkstation = true;
r6d.config-generator.nix-serve-server = true;
}) })
]; ];
} }