Set default value for flakelight input

This commit is contained in:
Archit Gupta 2024-01-09 23:23:13 -08:00
parent 0760edb005
commit a7e2fe5468
2 changed files with 5 additions and 3 deletions

View File

@ -2,8 +2,9 @@
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com> # Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
nixpkgs: inputs:
let let
inherit (inputs) nixpkgs;
inherit (builtins) isAttrs isPath readDir; inherit (builtins) isAttrs isPath readDir;
inherit (nixpkgs.lib) attrNames composeManyExtensions inherit (nixpkgs.lib) attrNames composeManyExtensions
filter findFirst fix genAttrs getValues hasSuffix isFunction isList filter findFirst fix genAttrs getValues hasSuffix isFunction isList
@ -20,6 +21,7 @@ let
specialArgs.modulesPath = ./builtinModules; specialArgs.modulesPath = ./builtinModules;
modules = builtinModules ++ self.extraModules ++ [ modules = builtinModules ++ self.extraModules ++ [
{ inputs.nixpkgs = mkDefault nixpkgs; } { inputs.nixpkgs = mkDefault nixpkgs; }
{ inputs.flakelight = mkDefault inputs.self; }
{ _module.args = { inherit src flakelight; }; } { _module.args = { inherit src flakelight; }; }
root root
]; ];

View File

@ -6,8 +6,8 @@
description = description =
"A modular Nix flake framework for simplifying flake definitions"; "A modular Nix flake framework for simplifying flake definitions";
inputs.nixpkgs.url = "nixpkgs/nixos-unstable"; inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
outputs = { nixpkgs, ... }@inputs: outputs = inputs:
let lib = import ./. nixpkgs; in let lib = import ./. inputs; in
lib.mkFlake ./. { lib.mkFlake ./. {
inherit lib; inherit lib;
functor = _: lib.mkFlake; functor = _: lib.mkFlake;