nixos: pass on warnings to the system configuration

Fixes #804

(cherry picked from commit 7834ffbbf1)
This commit is contained in:
Robert Helgesson 2019-08-18 17:33:25 +02:00
parent 0f85326dee
commit 14c5a22cfb
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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: