nixos: pass on warnings to the system configuration
Fixes #804
(cherry picked from commit 7834ffbbf1
)
This commit is contained in:
parent
0f85326dee
commit
14c5a22cfb
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue