adaptation pour que les expression de desktop se lancent que dans desktop
This commit is contained in:
@@ -1,8 +1,13 @@
|
|||||||
{ config, libs, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
imports = [
|
inherit (lib) mkIf;
|
||||||
];
|
cfg = config.r6d.config-generator;
|
||||||
|
computers = config.r6d.computers;
|
||||||
|
profiles = config.r6d.profiles;
|
||||||
|
in
|
||||||
|
|
||||||
|
mkIf profiles.isDesktop {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Adminsys
|
# Adminsys
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
{ config, libs, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
imports = [
|
inherit (lib) mkIf;
|
||||||
];
|
cfg = config.r6d.config-generator;
|
||||||
|
computers = config.r6d.computers;
|
||||||
|
profiles = config.r6d.profiles;
|
||||||
|
in
|
||||||
|
|
||||||
|
mkIf profiles.isDesktop {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Bureautique
|
# Bureautique
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
{ config, libs, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
imports = [
|
inherit (lib) mkIf;
|
||||||
];
|
cfg = config.r6d.config-generator;
|
||||||
|
computers = config.r6d.computers;
|
||||||
|
profiles = config.r6d.profiles;
|
||||||
|
in
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
mkIf profiles.isDesktop {
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
# CAO
|
# CAO
|
||||||
## Modélisation 3D
|
## Modélisation 3D
|
||||||
freecad # modélisation de pièces en 3D
|
freecad # modélisation de pièces en 3D
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
{ config, libs, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
imports = [
|
inherit (lib) mkIf;
|
||||||
];
|
cfg = config.r6d.config-generator;
|
||||||
|
computers = config.r6d.computers;
|
||||||
|
profiles = config.r6d.profiles;
|
||||||
|
in
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
mkIf profiles.isDesktop {
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
# Clients Internet
|
# Clients Internet
|
||||||
|
|
||||||
## Navigateur & Réseaux sociaux
|
## Navigateur & Réseaux sociaux
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
{ config, libs, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
imports = [
|
inherit (lib) mkIf;
|
||||||
];
|
cfg = config.r6d.config-generator;
|
||||||
|
computers = config.r6d.computers;
|
||||||
|
profiles = config.r6d.profiles;
|
||||||
|
in
|
||||||
|
|
||||||
|
mkIf profiles.isDesktop {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Base de données
|
# Base de données
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
{ config, libs, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
imports = [
|
inherit (lib) mkIf;
|
||||||
];
|
cfg = config.r6d.config-generator;
|
||||||
|
computers = config.r6d.computers;
|
||||||
|
profiles = config.r6d.profiles;
|
||||||
|
in
|
||||||
|
|
||||||
|
mkIf profiles.isDesktop {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Gestion de données géographiques
|
# Gestion de données géographiques
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
{ config, libs, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
imports = [
|
inherit (lib) mkIf;
|
||||||
];
|
cfg = config.r6d.config-generator;
|
||||||
|
computers = config.r6d.computers;
|
||||||
|
profiles = config.r6d.profiles;
|
||||||
|
in
|
||||||
|
|
||||||
|
mkIf profiles.isDesktop {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Multimedia
|
# Multimedia
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
{ config, libs, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
imports = [
|
inherit (lib) mkIf;
|
||||||
];
|
cfg = config.r6d.config-generator;
|
||||||
|
computers = config.r6d.computers;
|
||||||
|
profiles = config.r6d.profiles;
|
||||||
|
in
|
||||||
|
|
||||||
|
mkIf profiles.isDesktop {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Outils réseau
|
# Outils réseau
|
||||||
@@ -25,6 +30,8 @@
|
|||||||
tinc
|
tinc
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [5201]; # iperf
|
networking.firewall = {
|
||||||
networking.firewall.allowedUDPPorts = [5201]; # iperf
|
allowedTCPPorts = [5201]; # iperf
|
||||||
|
allowedUDPPorts = [5201]; # iperf
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
{ config, libs, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
imports = [
|
inherit (lib) mkIf;
|
||||||
];
|
cfg = config.r6d.config-generator;
|
||||||
|
computers = config.r6d.computers;
|
||||||
|
profiles = config.r6d.profiles;
|
||||||
|
in
|
||||||
|
|
||||||
|
mkIf profiles.isDesktop {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Securité
|
# Securité
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.r6d.config-generator;
|
||||||
|
computers = config.r6d.computers;
|
||||||
|
profiles = config.r6d.profiles;
|
||||||
|
mkIf = pkgs.lib.mkIf;
|
||||||
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ # applications :
|
imports = [ # applications :
|
||||||
# commandées par config-generator
|
# commandées par config-generator
|
||||||
@@ -21,7 +28,7 @@
|
|||||||
./app-securite.nix # relatives à la sécurité (chiffrement, gpg, mots de passe, ...)
|
./app-securite.nix # relatives à la sécurité (chiffrement, gpg, mots de passe, ...)
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; mkIf profiles.isDesktop [
|
||||||
# Environement de bureau
|
# Environement de bureau
|
||||||
wmname # pour définir le nom du gestionnaire de fenêtre (utile pour java)
|
wmname # pour définir le nom du gestionnaire de fenêtre (utile pour java)
|
||||||
kde4.ksnapshot# capture d'écran
|
kde4.ksnapshot# capture d'écran
|
||||||
@@ -55,7 +62,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver = {
|
services.xserver = mkIf profiles.isDesktop {
|
||||||
enable = true;
|
enable = true;
|
||||||
layout = "fr";
|
layout = "fr";
|
||||||
xkbOptions = "eurosign:e";
|
xkbOptions = "eurosign:e";
|
||||||
@@ -88,8 +95,9 @@
|
|||||||
Option "Emulate3Buttons" "true" # Factory default.
|
Option "Emulate3Buttons" "true" # Factory default.
|
||||||
''];
|
''];
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.pulseaudio = {
|
# Pulse Audio
|
||||||
|
hardware.pulseaudio = mkIf profiles.isDesktop {
|
||||||
enable = true;
|
enable = true;
|
||||||
support32Bit = true;
|
support32Bit = true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user