mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
nix-darwin: pass on warnings to the system configuration
(cherry picked from commit c2429ca0cf
)
This commit is contained in:
parent
14c5a22cfb
commit
2307cb280a
1 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue