refactor(home): consolidate host home modules under home/hosts

This commit is contained in:
Ryan Yin
2026-03-23 12:32:17 +08:00
parent cf7b5a5be7
commit 8207ccbdff
22 changed files with 59 additions and 47 deletions

View File

@@ -36,19 +36,9 @@ let
modules.desktop.gaming.enable = false;
}
];
home-modules =
(map mylib.relativeToRoot [
# common
"home/linux/gui.nix"
# host specific
"home/linux/hosts/12kingdoms-${name}.nix"
])
++ [
{
# not supported yet
modules.desktop.gaming.enable = false;
}
];
home-modules = map mylib.relativeToRoot [
"home/hosts/linux/12kingdoms-${name}.nix"
];
};
modules-niri = {
@@ -56,10 +46,7 @@ let
{ programs.niri.enable = true; }
]
++ base-modules.nixos-modules;
home-modules = [
{ modules.desktop.niri.enable = true; }
]
++ base-modules.home-modules;
home-modules = base-modules.home-modules;
};
in
{