Compare commits
8 Commits
2016-07-11
...
2016-07-27
| Author | SHA1 | Date | |
|---|---|---|---|
| 6ff5e008a7 | |||
|
|
e0cd512f87 | ||
|
|
51787ab25b | ||
| 7e9a8131a3 | |||
|
|
ba9cdb7518 | ||
|
|
bd70296e68 | ||
| 50083e7d93 | |||
| a5f3e7f87d |
20
activation-manuelle/app-awesome.nix
Normal file
20
activation-manuelle/app-awesome.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
cfg = config.r6d.config-generator;
|
||||
computers = config.r6d.computers;
|
||||
profiles = config.r6d.profiles;
|
||||
in mkIf cfg.awesome {
|
||||
|
||||
environment.variables = {
|
||||
# Export the current path for the awesome derivation, useful for users rc.lua
|
||||
# Example usage in rc.lua :
|
||||
#
|
||||
# config = {}
|
||||
# config.dir = os.getenv("AWESOME_CONFIG_DIR")
|
||||
# beautiful.init(config.dir .. "/share/awesome//themes/zenburn/theme.lua")
|
||||
#
|
||||
AWESOME_CONFIG_DIR = "${pkgs.awesome}";
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
];
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
24
activation-manuelle/xmonad.nix
Normal file
24
activation-manuelle/xmonad.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -14,6 +14,9 @@
|
||||
idea.idea-community
|
||||
gcc # pour les appels depuis les scripts
|
||||
|
||||
# Documentation
|
||||
zeal
|
||||
|
||||
## Gestion des sources
|
||||
# git # déjà présent dans "base"
|
||||
git-cola
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
{
|
||||
imports = [ # applications :
|
||||
# commandées par config-generator
|
||||
./activation-manuelle/app-awesome.nix # pour les profils awesome
|
||||
./activation-manuelle/app-docker.nix # pour activer docker
|
||||
./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, ...)
|
||||
@@ -23,6 +25,9 @@
|
||||
# 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
|
||||
gnome.gnome_icon_theme # thème d'icone - semble fonctionner avec spaceFM
|
||||
|
||||
Reference in New Issue
Block a user