From 549c3b3fd8477eeb5adcf00e8647f73a266c8516 Mon Sep 17 00:00:00 2001 From: Sk7Str1p3 Date: Thu, 25 Jun 2026 13:11:03 +0000 Subject: [PATCH] feat(flake): ability to call `lib` in files with inputs --- flake/inputs/core.nix | 1 + flake/inputs/default.nix | 2 +- flake/inputs/home/default.nix | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/flake/inputs/core.nix b/flake/inputs/core.nix index 534b332..60d6a18 100644 --- a/flake/inputs/core.nix +++ b/flake/inputs/core.nix @@ -4,6 +4,7 @@ Essential inputs that form the foundation of the NixOS configuration */ +{ ... }: { /** The Core of NixOS, providing packages and modules. diff --git a/flake/inputs/default.nix b/flake/inputs/default.nix index 1299742..893a545 100644 --- a/flake/inputs/default.nix +++ b/flake/inputs/default.nix @@ -16,7 +16,7 @@ */ { lib, ... }: lib.foldl' (acc: value: lib.recursiveUpdate acc value) { } ( - map (file: import ./${file}) ( + map (file: import ./${file} { inherit lib; }) ( builtins.filter (name: name != "default.nix") (builtins.attrNames (builtins.readDir ./.)) ) ) diff --git a/flake/inputs/home/default.nix b/flake/inputs/home/default.nix index f42b0e9..db0a742 100644 --- a/flake/inputs/home/default.nix +++ b/flake/inputs/home/default.nix @@ -3,7 +3,7 @@ /** Inputs providing modules or packages for user configurations. Check next chapters to learn more. */ -{ +{ ... }: { /** System for managing a user environment. Allows declarative configuration of user specific (non-global) packages and dotfiles.