From 196cc008c86ff35d214cf85db65794c2a9ef7f22 Mon Sep 17 00:00:00 2001 From: Yves Dubromelle Date: Wed, 5 Jul 2017 22:02:33 +0200 Subject: [PATCH] +service gpm pour la souris en console --- services/default.nix | 1 + services/gpm.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 services/gpm.nix diff --git a/services/default.nix b/services/default.nix index 3f5ec9c..74b9d0a 100644 --- a/services/default.nix +++ b/services/default.nix @@ -10,6 +10,7 @@ in { imports = [ # installées systématiquement + ./gpm.nix ./haveged.nix ./monitoring-munin.nix ./ssh.nix diff --git a/services/gpm.nix b/services/gpm.nix new file mode 100644 index 0000000..6bbcb44 --- /dev/null +++ b/services/gpm.nix @@ -0,0 +1,14 @@ +{ config, lib, pkgs, ... }: + +let + inherit (lib) mkIf mkMerge mkThenElse; + annuaire = config.r6d.machines; + currentMachine = annuaire."${config.networking.hostName}"; + flags = currentMachine.configurationFlags; +in + +mkIf true { + + # prise en charge de la souris en console + services.gpm.enable = true; +}