From 14c5a22cfba647e51479919bc5e40fdfe9632243 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 18 Aug 2019 17:33:25 +0200 Subject: [PATCH] nixos: pass on warnings to the system configuration Fixes #804 (cherry picked from commit 7834ffbbf1f543a6784ca7785c4e5bb6dfc7b584) --- nixos/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/default.nix b/nixos/default.nix index 4628d1f2d..40aea9353 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -44,6 +44,13 @@ in }; config = mkIf (cfg.users != {}) { + warnings = + flatten (flip mapAttrsToList cfg.users (user: config: + flip map config.warnings (warning: + "${user} profile: ${warning}" + ) + )); + assertions = flatten (flip mapAttrsToList cfg.users (user: config: flip map config.assertions (assertion: