1
0
Fork 0
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:
Robert Helgesson 2019-08-18 17:37:26 +02:00
parent 14c5a22cfb
commit 2307cb280a
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

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