fix: remove double-lambda in mkHome (was rejecting 'sets' argument)
This commit is contained in:
@@ -19,31 +19,8 @@
|
||||
# m3ta.home.sets.coding.languages.python.extra = true;
|
||||
# wayland.windowManager.hyprland.settings.monitor = [ ... ];
|
||||
#
|
||||
{inputs}:
|
||||
{lib ? inputs.nixpkgs.lib}:
|
||||
let
|
||||
# --- Module path helpers ---
|
||||
profilePath = ../profiles;
|
||||
userPath = ../users;
|
||||
|
||||
# Always loaded — CLI tools, shell, secrets, overlays
|
||||
baseModule = "${profilePath}/base";
|
||||
|
||||
# Context modules — mutually exclusive (desktop or server)
|
||||
contextModuleMap = {
|
||||
desktop = "${profilePath}/contexts/desktop";
|
||||
server = "${profilePath}/contexts/server";
|
||||
};
|
||||
|
||||
# Feature sets — freely combinable, some have context guards
|
||||
setModuleMap = {
|
||||
coding = "${profilePath}/sets/coding";
|
||||
gaming = "${profilePath}/sets/gaming";
|
||||
media = "${profilePath}/sets/media";
|
||||
};
|
||||
|
||||
# Sets that require desktop context
|
||||
desktopOnlySets = ["gaming" "media"];
|
||||
{inputs}: let
|
||||
lib = inputs.nixpkgs.lib;
|
||||
in {
|
||||
mkHome = {
|
||||
user ? "m3tam3re",
|
||||
@@ -51,6 +28,29 @@ in {
|
||||
context ? null,
|
||||
sets ? [],
|
||||
}: let
|
||||
# --- Module path helpers ---
|
||||
profilePath = ../profiles;
|
||||
userPath = ../users;
|
||||
|
||||
# Always loaded — CLI tools, shell, secrets, overlays
|
||||
baseModule = "${profilePath}/base";
|
||||
|
||||
# Context modules — mutually exclusive (desktop or server)
|
||||
contextModuleMap = {
|
||||
desktop = "${profilePath}/contexts/desktop";
|
||||
server = "${profilePath}/contexts/server";
|
||||
};
|
||||
|
||||
# Feature sets — freely combinable, some have context guards
|
||||
setModuleMap = {
|
||||
coding = "${profilePath}/sets/coding";
|
||||
gaming = "${profilePath}/sets/gaming";
|
||||
media = "${profilePath}/sets/media";
|
||||
};
|
||||
|
||||
# Sets that require desktop context
|
||||
desktopOnlySets = ["gaming" "media"];
|
||||
|
||||
# User preferences — always loaded (shell style, editor config, etc.)
|
||||
preferencesPath = "${userPath}/${user}/preferences";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user