mirror of
https://github.com/nix-community/flakelight.git
synced 2024-11-29 10:53:13 +01:00
20 lines
396 B
Nix
20 lines
396 B
Nix
|
# flakelight -- Framework for simplifying flake setup
|
||
|
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||
|
# SPDX-License-Identifier: MIT
|
||
|
|
||
|
{ config, lib, ... }:
|
||
|
let
|
||
|
inherit (lib) mkOption mkIf;
|
||
|
inherit (lib.types) attrsOf raw;
|
||
|
in
|
||
|
{
|
||
|
options.lib = mkOption {
|
||
|
type = attrsOf raw;
|
||
|
default = { };
|
||
|
};
|
||
|
|
||
|
config.outputs = mkIf (config.lib != { }) {
|
||
|
inherit (config) lib;
|
||
|
};
|
||
|
}
|