1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

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

View file

@ -64,6 +64,13 @@ in
}; };
config = mkIf (cfg.users != {}) { config = mkIf (cfg.users != {}) {
warnings =
flatten (flip mapAttrsToList cfg.users (user: config:
flip map config.warnings (warning:
"${user} profile: ${warning}"
)
));
assertions = assertions =
flatten (flip mapAttrsToList cfg.users (user: config: flatten (flip mapAttrsToList cfg.users (user: config:
flip map config.assertions (assertion: flip map config.assertions (assertion: