add homeManagerFlakeModule for declaring homeManager flake outputs

This commit is contained in:
ulic-youthlic 2025-03-13 20:11:08 +08:00
parent f7c4a7d830
commit 0ff80a7596
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
3 changed files with 11 additions and 8 deletions

View file

@ -181,6 +181,9 @@
in
flake-parts.lib.mkFlake { inherit inputs; } {
systems = flake-utils.lib.defaultSystems;
imports = [
inputs.home-manager.flakeModules.home-manager
];
perSystem = (
{ pkgs, system, ... }@args:
{
@ -272,12 +275,12 @@
[
"${toString ./home}/${unixName}/configurations/${hostName}"
]
++ (with outputs.homeManagerModules; [
++ (with outputs.homeModules; [
default
extra
])
++ [
outputs.homeManagerModules."${unixName}"
outputs.homeModules."${unixName}"
];
extraSpecialArgs = {
inherit
@ -304,7 +307,7 @@
hostName = "Cape";
unixName = "alice";
};
homeManagerModules =
homeModules =
{
default = import ./home/modules;
extra = import ./home/extra;