Refactor desktop HM into desktop-home-base and per-host home.nix
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# Resolve `wisdom*` HM slices for NixOS `extraModules` (`self` is not an HM specialArg).
|
||||
# Slices are gated by `chiasson.home.*.enable`; hosts only flip toggles in `home.nix`.
|
||||
{ lib, ... }: {
|
||||
flake.lib.wisdomCatalogExtraModules =
|
||||
self:
|
||||
let
|
||||
names = lib.sort builtins.lessThan (
|
||||
lib.filter (
|
||||
n:
|
||||
lib.hasPrefix "wisdom" n
|
||||
&& n != "wisdom"
|
||||
&& n != "wisdomShellBash"
|
||||
) (builtins.attrNames self.homeManagerModules)
|
||||
);
|
||||
in
|
||||
map (name: self.homeManagerModules.${name}) names;
|
||||
}
|
||||
Reference in New Issue
Block a user