From f6b939ffa96596f009d42a1f0ee5df3ad6e9db77 Mon Sep 17 00:00:00 2001 From: Yves Dubromelle Date: Fri, 15 Jul 2016 11:59:39 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20de=20politique=20d'=C3=A9nergie=20pour?= =?UTF-8?q?=20laptop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- activation-manuelle/laptop.nix | 6 ++++++ config-generator.nix | 1 + 2 files changed, 7 insertions(+) create mode 100644 activation-manuelle/laptop.nix diff --git a/activation-manuelle/laptop.nix b/activation-manuelle/laptop.nix new file mode 100644 index 0000000..6a08edc --- /dev/null +++ b/activation-manuelle/laptop.nix @@ -0,0 +1,6 @@ +{ config, pkgs, ... }: + +{ + # Gestion spécifique pour PC portable + powerManagement.cpuFreqGovernor = pkgs.lib.mkIf config.r6d.config-generator.laptop "powersave"; +} diff --git a/config-generator.nix b/config-generator.nix index f8dfc84..4fb65ed 100644 --- a/config-generator.nix +++ b/config-generator.nix @@ -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