1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

nixos module: evaluate assertions from Home Manager modules

This commit is contained in:
Maximilian Bosch 2019-02-28 01:52:48 +01:00 committed by Robert Helgesson
parent 848b8b983e
commit 0898b6b482
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -44,6 +44,16 @@ in
};
config = mkIf (cfg.users != {}) {
assertions =
flatten (flip mapAttrsToList cfg.users (user: config:
flip map config.assertions (assertion:
{
inherit (assertion) assertion;
message = "${user} profile: ${assertion.message}";
}
)
));
users.users = mkIf cfg.useUserPackages (
mapAttrs (username: usercfg: {
packages = usercfg.home.packages;