uniformisation des en-tetes
This commit is contained in:
@@ -1,14 +1,16 @@
|
|||||||
{ config, libs, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
{
|
inherit (lib) mkIf;
|
||||||
|
cfg = config.r6d.config-generator;
|
||||||
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; pkgs.lib.mkIf config.r6d.config-generator.docker [
|
environment.systemPackages = with pkgs; mkIf cfg.docker [
|
||||||
# Ecosystème Docker
|
# Ecosystème Docker
|
||||||
docker
|
docker
|
||||||
python27Packages.docker_compose
|
python27Packages.docker_compose
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.docker.enable = config.r6d.config-generator.docker;
|
virtualisation.docker.enable = cfg.docker;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
{ config, libs, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
{
|
inherit (lib) mkIf;
|
||||||
|
cfg = config.r6d.config-generator;
|
||||||
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; pkgs.lib.mkIf config.r6d.config-generator.jeux [
|
environment.systemPackages = with pkgs; mkIf cfg.jeux [
|
||||||
# Jeux
|
# Jeux
|
||||||
urbanterror
|
urbanterror
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
{ config, libs, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
{
|
inherit (lib) mkIf;
|
||||||
|
cfg = config.r6d.config-generator;
|
||||||
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; pkgs.lib.mkIf config.r6d.config-generator.virtualbox [
|
environment.systemPackages = with pkgs; mkIf cfg.virtualbox [
|
||||||
linuxPackages.virtualbox
|
linuxPackages.virtualbox
|
||||||
linuxPackages.virtualboxGuestAdditions
|
linuxPackages.virtualboxGuestAdditions
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.virtualbox.host.enable = config.r6d.config-generator.virtualbox;
|
virtualisation.virtualbox.host.enable = cfg.virtualbox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,19 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
{
|
inherit (lib) mkIf;
|
||||||
|
cfg = config.r6d.config-generator;
|
||||||
|
in {
|
||||||
# Paquets spécifiques pour un ordinateur portable
|
# Paquets spécifiques pour un ordinateur portable
|
||||||
|
|
||||||
networking.networkmanager.enable = config.r6d.config-generator.laptop; # Activation d'un gestionnaire de réseau
|
networking.networkmanager.enable = cfg.laptop; # Activation d'un gestionnaire de réseau
|
||||||
|
|
||||||
hardware.bluetooth.enable = config.r6d.config-generator.laptop;
|
hardware.bluetooth.enable = cfg.laptop;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; pkgs.lib.mkIf config.r6d.config-generator.laptop [
|
environment.systemPackages = with pkgs; mkIf cfg.laptop [
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
];
|
];
|
||||||
|
|
||||||
services.xserver.synaptics = pkgs.lib.mkIf config.r6d.config-generator.laptop {
|
services.xserver.synaptics = mkIf cfg.laptop {
|
||||||
enable = true;
|
enable = true;
|
||||||
twoFingerScroll = true;
|
twoFingerScroll = true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user