mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
1fb0d37021
No need to avoid raw, because it has been merged for some time now.
26 lines
511 B
Nix
26 lines
511 B
Nix
{ config, lib, ... }:
|
|
let
|
|
inherit (lib)
|
|
filterAttrs
|
|
mapAttrs
|
|
mkOption
|
|
optionalAttrs
|
|
types
|
|
;
|
|
in
|
|
{
|
|
options = {
|
|
flake = mkOption {
|
|
type = types.submoduleWith {
|
|
modules = [
|
|
{ freeformType = types.lazyAttrsOf types.raw; }
|
|
];
|
|
};
|
|
description = ''
|
|
Raw flake attributes. Any attribute can be set here, but some
|
|
attributes are represented by options, to provide appropriate
|
|
configuration merging.
|
|
'';
|
|
};
|
|
};
|
|
}
|