harmonisation fichiers activation manuelle
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
cfg = config.r6d.config-generator;
|
cfg = config.r6d.config-generator;
|
||||||
|
computers = config.r6d.computers;
|
||||||
profiles = config.r6d.profiles;
|
profiles = config.r6d.profiles;
|
||||||
in {
|
in mkIf cfg.awesome {
|
||||||
imports = [
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.variables = mkIf cfg.awesome {
|
environment.variables = {
|
||||||
# Export the current path for the awesome derivation, useful for users rc.lua
|
# Export the current path for the awesome derivation, useful for users rc.lua
|
||||||
# Example usage in rc.lua :
|
# Example usage in rc.lua :
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
cfg = config.r6d.config-generator;
|
cfg = config.r6d.config-generator;
|
||||||
in {
|
computers = config.r6d.computers;
|
||||||
imports = [
|
profiles = config.r6d.profiles;
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; mkIf cfg.docker [
|
in mkIf cfg.docker {
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
# Ecosystème Docker
|
# Ecosystème Docker
|
||||||
docker
|
docker
|
||||||
python27Packages.docker_compose
|
python27Packages.docker_compose
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.docker.enable = cfg.docker;
|
virtualisation.docker.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
cfg = config.r6d.config-generator;
|
cfg = config.r6d.config-generator;
|
||||||
in {
|
computers = config.r6d.computers;
|
||||||
imports = [
|
profiles = config.r6d.profiles;
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; mkIf cfg.jeux [
|
in mkIf cfg.jeux {
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
# Jeux
|
# Jeux
|
||||||
urbanterror
|
urbanterror
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
cfg = config.r6d.config-generator;
|
cfg = config.r6d.config-generator;
|
||||||
in {
|
computers = config.r6d.computers;
|
||||||
imports = [
|
profiles = config.r6d.profiles;
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; mkIf cfg.virtualbox [
|
in mkIf cfg.virtualbox {
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
linuxPackages.virtualbox
|
linuxPackages.virtualbox
|
||||||
linuxPackages.virtualboxGuestAdditions
|
linuxPackages.virtualboxGuestAdditions
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.virtualbox.host.enable = cfg.virtualbox;
|
virtualisation.virtualbox.host.enable = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +1,24 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
cfg = config.r6d.config-generator;
|
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
|
# 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
|
networkmanagerapplet
|
||||||
];
|
];
|
||||||
|
|
||||||
services.xserver.synaptics = mkIf cfg.laptop {
|
services.xserver.synaptics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
twoFingerScroll = true;
|
twoFingerScroll = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,18 +1,24 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
cfg = config.r6d.config-generator;
|
cfg = config.r6d.config-generator;
|
||||||
in mkIf cfg.xmonad {
|
computers = config.r6d.computers;
|
||||||
# Paquets spécifiques pour un ordinateur portable
|
profiles = config.r6d.profiles;
|
||||||
|
|
||||||
|
in mkIf cfg.xmonad {
|
||||||
|
# Paquets spécifiques pour xmonad
|
||||||
|
|
||||||
environment.systemPackages = with pkgs;[
|
environment.systemPackages = with pkgs;[
|
||||||
dmenu
|
dmenu
|
||||||
haskellPackages.xmobar
|
haskellPackages.xmobar
|
||||||
];
|
];
|
||||||
|
|
||||||
services.xserver.windowManager.xmonad.enable = true;
|
services.xserver.windowManager.xmonad = {
|
||||||
services.xserver.windowManager.xmonad.enableContribAndExtras = true;
|
enable = true;
|
||||||
services.xserver.windowManager.xmonad.extraPackages = haskellPackages: [
|
enableContribAndExtras = true;
|
||||||
haskellPackages.xmobar
|
extraPackages = haskellPackages: [
|
||||||
];
|
haskellPackages.xmobar
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user