🚧 Initial work on generating homeConfigurations output + syntax changes

This commit is contained in:
Jo 2025-03-25 23:46:13 +01:00
parent f139b88c0b
commit f89cbcc552
12 changed files with 131 additions and 106 deletions

22
modules/flake/homes.nix Normal file
View file

@ -0,0 +1,22 @@
{
lib,
inputs,
puzzlelib,
...
}: let
HomeConfiguration = args: let
nixpkgs = inputs.nixpkgs;
in
inputs.home-manager.lib.homeManagerConfiguration {
modules = (puzzlelib.dirToModuleList ../home) ++ args.modules;
extraSpecialArgs =
{
inherit (args) nixpkgs;
}
// args.extraSpecialArgs;
};
in {
perSystem = {
# TODO Dynamically export homeConfigurations by consuming contents of /homes/user-name
};
}