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>
# SPDX-License-Identifier: MIT
nixpkgs:
inputs:
let
inherit (inputs) nixpkgs;
inherit (builtins) isAttrs isPath readDir;
inherit (nixpkgs.lib) attrNames composeManyExtensions
filter findFirst fix genAttrs getValues hasSuffix isFunction isList
@ -20,6 +21,7 @@ let
specialArgs.modulesPath = ./builtinModules;
modules = builtinModules ++ self.extraModules ++ [
{ inputs.nixpkgs = mkDefault nixpkgs; }
{ inputs.flakelight = mkDefault inputs.self; }
{ _module.args = { inherit src flakelight; }; }
root
];

View File

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