You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
749 B
Nix
34 lines
749 B
Nix
9 years ago
|
{ config, lib, pkgs, ... }:
|
||
9 years ago
|
|
||
|
let
|
||
9 years ago
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||
9 years ago
|
cfg = config.r6d.config-generator;
|
||
9 years ago
|
computers = config.r6d.computers;
|
||
|
profiles = config.r6d.profiles;
|
||
|
in
|
||
|
|
||
|
mkIf cfg.laptop {
|
||
|
|
||
9 years ago
|
# Gestion spécifique pour PC portable
|
||
9 years ago
|
|
||
|
## Gestion de l'énergie
|
||
9 years ago
|
powerManagement.cpuFreqGovernor = "powersave";
|
||
9 years ago
|
|
||
|
## Activation d'un gestionnaire de réseau
|
||
|
networking.networkmanager.enable = true;
|
||
|
|
||
|
hardware.bluetooth.enable = true;
|
||
|
|
||
9 years ago
|
# Paquets
|
||
9 years ago
|
environment.systemPackages = with pkgs; [
|
||
9 years ago
|
networkmanagerapplet # gestionnaire réseau graphique + console (nm-applet + nmtui)
|
||
|
wirelesstools # fournis iwconfig
|
||
9 years ago
|
];
|
||
8 years ago
|
|
||
|
# Services
|
||
|
services.xserver.synaptics = {
|
||
|
enable = true;
|
||
|
twoFingerScroll = true;
|
||
|
};
|
||
9 years ago
|
}
|