2016-08-08 22:58:30 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2016-07-22 14:16:20 +02:00
|
|
|
|
|
|
|
|
let
|
2016-08-08 22:58:30 +02:00
|
|
|
inherit (lib) mkIf;
|
2016-07-22 14:16:20 +02:00
|
|
|
cfg = config.r6d.config-generator;
|
2016-08-08 22:58:30 +02:00
|
|
|
computers = config.r6d.computers;
|
|
|
|
|
profiles = config.r6d.profiles;
|
|
|
|
|
in
|
|
|
|
|
|
|
|
|
|
mkIf cfg.laptop {
|
|
|
|
|
|
2016-07-15 11:59:39 +02:00
|
|
|
# Gestion spécifique pour PC portable
|
2016-08-09 13:52:10 +02:00
|
|
|
|
|
|
|
|
## Gestion de l'énergie
|
2016-08-08 22:58:30 +02:00
|
|
|
powerManagement.cpuFreqGovernor = "powersave";
|
2016-08-09 13:52:10 +02:00
|
|
|
|
|
|
|
|
## Activation d'un gestionnaire de réseau
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
networkmanagerapplet
|
|
|
|
|
];
|
2016-07-15 11:59:39 +02:00
|
|
|
}
|