Refactor desktop HM into desktop-home-base and per-host home.nix
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
./hardware/uconsole-gamepad.nix
|
||||
];
|
||||
|
||||
# Root module: chiasson.home.enable + bash. Everything else is separate `wisdom*` exports —
|
||||
# pull those into `home.users.<name>.extraModules` on each host as needed.
|
||||
# Root module: chiasson.home.enable + bash. Other `wisdom*` slices auto-wire via
|
||||
# `lib.wisdomCatalogExtraModules`; hosts flip `chiasson.home.*.enable` rather than re-importing.
|
||||
flake.homeManagerModules.wisdom =
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
@@ -24,8 +24,8 @@
|
||||
|
||||
options.chiasson.home = {
|
||||
enable = lib.mkEnableOption ''
|
||||
HM profile root for this flake (bash on by default). Wire other `wisdom*` modules in
|
||||
`home.users.<name>.extraModules` and flip their `chiasson.home.*.enable` options on the host.
|
||||
HM profile root for this flake (bash on by default). Desktop hosts use
|
||||
`lib.wisdomCatalogExtraModules` once per user and flip `chiasson.home.*.enable` on the host.
|
||||
'' // {
|
||||
default = true;
|
||||
};
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{ ... }: {
|
||||
# Optional fragment: import from `home.users.<name>.extraModules` only on hosts that need Yazi so this
|
||||
# module (and its `pkgs.yazi` wiring) is not evaluated when omitted.
|
||||
# Gated by `chiasson.home.shell.yazi.enable` (desktop hosts wire slices via `desktopHomeBase`).
|
||||
flake.homeManagerModules.wisdomShellYazi =
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
|
||||
Reference in New Issue
Block a user