From 7834ffbbf1f543a6784ca7785c4e5bb6dfc7b584 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 --- nixos/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/default.nix b/nixos/default.nix index f723fb5e..29803ddc 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -64,6 +64,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: