nixos: pass on warnings to the system configuration

Fixes #804
This commit is contained in:
Robert Helgesson 2019-08-18 17:33:25 +02:00
parent fa82ced414
commit 7834ffbbf1
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
1 changed files with 7 additions and 0 deletions

View File

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