mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
nixos: pass on warnings to the system configuration
Fixes #804
(cherry picked from commit 7834ffbbf1
)
This commit is contained in:
parent
0f85326dee
commit
14c5a22cfb
1 changed files with 7 additions and 0 deletions
|
@ -44,6 +44,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:
|
||||||
|
|
Loading…
Reference in a new issue