nixos/lib/default.nix

15 lines
343 B
Nix
Raw Normal View History

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
}