nix-darwin: pass on warnings to the system configuration
This commit is contained in:
parent
7834ffbbf1
commit
c2429ca0cf
|
@ -39,6 +39,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