From c2429ca0cfc5aabb128773c262915321009b4ea9 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 18 Aug 2019 17:37:26 +0200 Subject: [PATCH] nix-darwin: pass on warnings to the system configuration --- nix-darwin/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nix-darwin/default.nix b/nix-darwin/default.nix index 284d2d60..4ce64a77 100644 --- a/nix-darwin/default.nix +++ b/nix-darwin/default.nix @@ -39,6 +39,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: