harmonisation des headers pour public/

extraction-donnees-privees
Jean-Pierre PRUNARET 9 years ago
parent 47de85f6bd
commit 33e44d23f9

@ -5,7 +5,9 @@ let
cfg = config.r6d.config-generator; cfg = config.r6d.config-generator;
computers = config.r6d.computers; computers = config.r6d.computers;
profiles = config.r6d.profiles; profiles = config.r6d.profiles;
in mkIf cfg.awesome { in
mkIf cfg.awesome {
environment.variables = { 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

@ -5,8 +5,9 @@ let
cfg = config.r6d.config-generator; cfg = config.r6d.config-generator;
computers = config.r6d.computers; computers = config.r6d.computers;
profiles = config.r6d.profiles; profiles = config.r6d.profiles;
in
in mkIf cfg.docker { mkIf cfg.docker {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# Ecosystème Docker # Ecosystème Docker

@ -5,8 +5,9 @@ let
cfg = config.r6d.config-generator; cfg = config.r6d.config-generator;
computers = config.r6d.computers; computers = config.r6d.computers;
profiles = config.r6d.profiles; profiles = config.r6d.profiles;
in
in mkIf cfg.jeux { mkIf cfg.jeux {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# Jeux # Jeux

@ -5,8 +5,9 @@ let
cfg = config.r6d.config-generator; cfg = config.r6d.config-generator;
computers = config.r6d.computers; computers = config.r6d.computers;
profiles = config.r6d.profiles; profiles = config.r6d.profiles;
in
in mkIf cfg.virtualbox { mkIf cfg.virtualbox {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
linuxPackages.virtualbox linuxPackages.virtualbox

@ -1,12 +1,15 @@
{ config, pkgs, ... }: { config, lib, pkgs, ... }:
with pkgs.lib;
let let
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.auto-upgrade {
# Automatic update & automatic clean # Automatic update & automatic clean
system.autoUpgrade.enable = cfg.auto-upgrade; system.autoUpgrade.enable = true;
nix.gc.automatic = cfg.auto-upgrade; nix.gc.automatic = true;
} }

@ -1,10 +1,14 @@
{ config, pkgs, ... }: { config, lib, pkgs, ... }:
with pkgs.lib;
let let
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 {
# Gestion spécifique pour PC portable # Gestion spécifique pour PC portable
powerManagement.cpuFreqGovernor = mkIf cfg.laptop "powersave"; powerManagement.cpuFreqGovernor = "powersave";
} }

@ -1,15 +1,16 @@
{ config, pkgs, ... }: { config, lib, pkgs, ... }:
with pkgs.lib;
let let
inherit (lib) mkIf;
cfg = config.r6d.config-generator; cfg = config.r6d.config-generator;
in { computers = config.r6d.computers;
imports = [ profiles = config.r6d.profiles;
]; in
mkIf cfg.locate {
services.locate = { services.locate = {
enable = cfg.locate; enable = true;
interval = "hourly"; interval = "hourly";
}; };
} }

@ -1,12 +1,15 @@
{ config, pkgs, ... }: { config, lib, pkgs, ... }:
with pkgs.lib;
let let
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.print {
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing = mkIf cfg.print { services.printing = {
enable = true; enable = true;
drivers = [ drivers = [
pkgs.samsung-unified-linux-driver pkgs.samsung-unified-linux-driver

@ -1,14 +1,17 @@
{ config, pkgs, ... }: { config, lib, pkgs, ... }:
with pkgs.lib;
let let
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.swap {
# Gestion du swap # Gestion du swap
# https://en.wikipedia.org/wiki/Swappiness # https://en.wikipedia.org/wiki/Swappiness
boot.kernel.sysctl = mkIf cfg.swap { boot.kernel.sysctl = {
# le swap est activé (!= 0) # le swap est activé (!= 0)
# le swap est utilisé lorsque (100 - x) % de la mémoire est déja allouée # le swap est utilisé lorsque (100 - x) % de la mémoire est déja allouée
"vm.swappiness" = 10; "vm.swappiness" = 10;

Loading…
Cancel
Save