mirror of
https://github.com/nix-community/flakelight.git
synced 2024-11-25 00:43:15 +01:00
19 lines
457 B
Nix
19 lines
457 B
Nix
# flakelite -- Framework for making flakes simple
|
|
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
{ config, lib, flakelite, ... }:
|
|
let
|
|
inherit (lib) mkOption mkIf;
|
|
inherit (lib.types) lazyAttrsOf;
|
|
inherit (flakelite.types) overlay;
|
|
in
|
|
{
|
|
options.overlays = mkOption {
|
|
type = lazyAttrsOf overlay;
|
|
default = { };
|
|
};
|
|
|
|
config.outputs = mkIf (config.overlays != { }) { inherit (config) overlays; };
|
|
}
|