fix: remove double-lambda in mkHome (was rejecting 'sets' argument)

This commit is contained in:
2026-05-02 09:56:45 +02:00
parent 0a03af7174
commit 17b7485e3a
2 changed files with 28 additions and 34 deletions

View File

@@ -1,11 +1,5 @@
# lib/default.nix — Entry point for m3ta-home library functions. # lib/default.nix — Entry point for m3ta-home library functions.
# #
# Provides: # Called by flake.nix: import ./lib { inherit inputs; }
# mkHome — compose a complete HM config from user + identity + context + sets # Re-exports mkHome and future library functions.
# mkDevShell — create project-level dev shells from language sets {inputs}: import ./mkHome.nix {inherit inputs;}
{inputs}: {
mkHome = import ./mkHome.nix {inherit inputs;};
# TODO: mkDevShell for project-level flake devShells
# mkDevShell = import ./mkDevShell.nix { inherit inputs; };
}

View File

@@ -19,9 +19,15 @@
# m3ta.home.sets.coding.languages.python.extra = true; # m3ta.home.sets.coding.languages.python.extra = true;
# wayland.windowManager.hyprland.settings.monitor = [ ... ]; # wayland.windowManager.hyprland.settings.monitor = [ ... ];
# #
{inputs}: {inputs}: let
{lib ? inputs.nixpkgs.lib}: lib = inputs.nixpkgs.lib;
let in {
mkHome = {
user ? "m3tam3re",
identity ? "private",
context ? null,
sets ? [],
}: let
# --- Module path helpers --- # --- Module path helpers ---
profilePath = ../profiles; profilePath = ../profiles;
userPath = ../users; userPath = ../users;
@@ -44,13 +50,7 @@ let
# Sets that require desktop context # Sets that require desktop context
desktopOnlySets = ["gaming" "media"]; desktopOnlySets = ["gaming" "media"];
in {
mkHome = {
user ? "m3tam3re",
identity ? "private",
context ? null,
sets ? [],
}: let
# User preferences — always loaded (shell style, editor config, etc.) # User preferences — always loaded (shell style, editor config, etc.)
preferencesPath = "${userPath}/${user}/preferences"; preferencesPath = "${userPath}/${user}/preferences";