mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
nix-darwin: pass on warnings to the system configuration
This commit is contained in:
parent
7834ffbbf1
commit
c2429ca0cf
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