From 634af072194af86695d9d9c2f82cd2256166f52a Mon Sep 17 00:00:00 2001 From: Jean-Pierre PRUNARET Date: Sun, 14 Aug 2016 10:42:39 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20d'assertion=20=C3=A0=20users.nix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/activation-manuelle/users.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/base/activation-manuelle/users.nix b/base/activation-manuelle/users.nix index 953af39..242e471 100644 --- a/base/activation-manuelle/users.nix +++ b/base/activation-manuelle/users.nix @@ -92,4 +92,12 @@ in { hashedPassword = "$6$RuwEVVml$JnSb62qFrtBJY1CfC9uE0YK2qd2TpnNmlXNeQ62ludb3mkV8AMUVEj3R9jTKtOfLt/ap6jGVmakotGtHczBHL/"; uid = 1103; }; +} // { + assertions = [ + { + assertion = (profiles.isPrunetwork && (config.security.sudo.wheelNeedsPassword == true)) + || (!profiles.isPrunetwork && true); # pas prunetwork = pas de poliique + message = "Faire sudo nécessite un mot de passe"; + } + ]; }