2024-05-25 15:16:08 +02:00
|
|
|
{ lib, ... }:
|
2024-05-25 01:32:48 +02:00
|
|
|
|
2024-05-25 15:16:08 +02:00
|
|
|
let
|
|
|
|
applyHomeManagerConfig = { home-manager, ... }: let
|
|
|
|
applyConfig = user: {
|
|
|
|
home-manager.users.${user.name} = user.config;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
home-manager.users = lib.foldl' (acc: user: acc // applyConfig user) {} (lib.attrValues home-manager.users);
|
|
|
|
};
|
|
|
|
in
|
2024-05-25 01:32:48 +02:00
|
|
|
{
|
2024-05-25 15:16:08 +02:00
|
|
|
applyHomeManagerConfig = applyHomeManagerConfig;
|
2024-05-25 01:32:48 +02:00
|
|
|
}
|