mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
28 lines
575 B
Nix
28 lines
575 B
Nix
|
{ config, self, lib, flake-modules-core-lib, ... }:
|
||
|
let
|
||
|
inherit (lib)
|
||
|
filterAttrs
|
||
|
mapAttrs
|
||
|
mkOption
|
||
|
optionalAttrs
|
||
|
types
|
||
|
;
|
||
|
inherit (flake-modules-core-lib)
|
||
|
mkSubmoduleOptions
|
||
|
;
|
||
|
in
|
||
|
{
|
||
|
options = {
|
||
|
flake = mkSubmoduleOptions {
|
||
|
nixosModules = mkOption {
|
||
|
type = types.lazyAttrsOf types.unspecified;
|
||
|
default = { };
|
||
|
apply = mapAttrs (k: v: { _file = "${toString self.outPath}/flake.nix#nixosModules.${k}"; imports = [ v ]; });
|
||
|
description = ''
|
||
|
NixOS modules.
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|