From 3f038be64a83e2690cfd39d9442ab1cd10de01e2 Mon Sep 17 00:00:00 2001 From: Jean-Pierre PRUNARET Date: Fri, 2 Mar 2018 07:57:10 +0100 Subject: [PATCH] template : ajout d'un exemple d'assertion --- module-template.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module-template.nix b/module-template.nix index 4efc539..3cb37ef 100644 --- a/module-template.nix +++ b/module-template.nix @@ -22,4 +22,11 @@ mkIf true { allowedUDPPorts = [ ]; }; +} // { + assertions = [ + { + assertion = true; + message = "Assetion toujours valide."; + } + ]; }