1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01:00

nix-darwin: pass on warnings to the system configuration

This commit is contained in:
Robert Helgesson 2019-08-18 17:37:26 +02:00
parent 7834ffbbf1
commit c2429ca0cf
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: