Compare commits

..

3 Commits

Author SHA1 Message Date
6ff5e008a7 harmonisation fichiers activation manuelle 2016-07-26 15:57:02 +02:00
Yves Dubromelle
e0cd512f87 petits outils pour xorg : xev et xbacklight 2016-07-21 00:44:23 +02:00
Yves Dubromelle
51787ab25b configuration pour xmonad 2016-07-21 00:22:31 +02:00
7 changed files with 61 additions and 23 deletions

View File

@@ -1,13 +1,13 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf;
cfg = config.r6d.config-generator;
computers = config.r6d.computers;
profiles = config.r6d.profiles;
in {
imports = [
];
in mkIf cfg.awesome {
environment.variables = mkIf cfg.awesome {
environment.variables = {
# Export the current path for the awesome derivation, useful for users rc.lua
# Example usage in rc.lua :
#

View File

@@ -1,16 +1,18 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf;
cfg = config.r6d.config-generator;
in {
imports = [
];
computers = config.r6d.computers;
profiles = config.r6d.profiles;
environment.systemPackages = with pkgs; mkIf cfg.docker [
in mkIf cfg.docker {
environment.systemPackages = with pkgs; [
# Ecosystème Docker
docker
python27Packages.docker_compose
];
virtualisation.docker.enable = cfg.docker;
virtualisation.docker.enable = true;
}

View File

@@ -1,12 +1,14 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf;
cfg = config.r6d.config-generator;
in {
imports = [
];
computers = config.r6d.computers;
profiles = config.r6d.profiles;
environment.systemPackages = with pkgs; mkIf cfg.jeux [
in mkIf cfg.jeux {
environment.systemPackages = with pkgs; [
# Jeux
urbanterror
];

View File

@@ -1,16 +1,18 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf;
cfg = config.r6d.config-generator;
in {
imports = [
];
computers = config.r6d.computers;
profiles = config.r6d.profiles;
environment.systemPackages = with pkgs; mkIf cfg.virtualbox [
in mkIf cfg.virtualbox {
environment.systemPackages = with pkgs; [
linuxPackages.virtualbox
linuxPackages.virtualboxGuestAdditions
];
virtualisation.virtualbox.host.enable = cfg.virtualbox;
virtualisation.virtualbox.host.enable = true;
}

View File

@@ -1,19 +1,24 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf;
cfg = config.r6d.config-generator;
in {
computers = config.r6d.computers;
profiles = config.r6d.profiles;
in mkIf cfg.laptop {
# Paquets spécifiques pour un ordinateur portable
networking.networkmanager.enable = cfg.laptop; # Activation d'un gestionnaire de réseau
## Activation d'un gestionnaire de réseau
networking.networkmanager.enable = true;
hardware.bluetooth.enable = cfg.laptop;
hardware.bluetooth.enable = true;
environment.systemPackages = with pkgs; mkIf cfg.laptop [
environment.systemPackages = with pkgs; [
networkmanagerapplet
];
services.xserver.synaptics = mkIf cfg.laptop {
services.xserver.synaptics = {
enable = true;
twoFingerScroll = true;
};

View File

@@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf;
cfg = config.r6d.config-generator;
computers = config.r6d.computers;
profiles = config.r6d.profiles;
in mkIf cfg.xmonad {
# Paquets spécifiques pour xmonad
environment.systemPackages = with pkgs;[
dmenu
haskellPackages.xmobar
];
services.xserver.windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
extraPackages = haskellPackages: [
haskellPackages.xmobar
];
};
}

View File

@@ -8,6 +8,7 @@
./activation-manuelle/app-jeux.nix # permettant de jouer ;)
./activation-manuelle/app-virtualbox.nix # pour exploiter virtualbox
./activation-manuelle/laptop.nix # appli & configuration adaptée pour un PC portable$
./activation-manuelle/xmonad.nix # gestionnaire de fenêtres xmonad
# installées systématiquement
./app-adminsys.nix # pour gérer le système dans son ensemble et les services
./app-bureautique.nix # dédiée à la bureautique (traitement de texte, dessin, ...)
@@ -24,6 +25,8 @@
# Environement de bureau
wmname # pour définir le nom du gestionnaire de fenêtre (utile pour java)
kde4.ksnapshot# capture d'écran
xorg.xbacklight # pour gérer la luminosité de l'écran
xorg.xev # pour repérer les codes + noms standard des actions clavier/souris
xorg.xkill # pour 'tuer une application'
## Gestionnaire de fenêtre & Thème