mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
22 lines
567 B
Nix
22 lines
567 B
Nix
|
{ lib, flake-parts-lib, ... }:
|
||
|
let
|
||
|
configurationType = lib.mkOptionType {
|
||
|
name = "configuration";
|
||
|
description = "configuration";
|
||
|
descriptionClass = "noun";
|
||
|
merge = lib.options.mergeOneOption;
|
||
|
check = x: x._type or null == "configuration";
|
||
|
};
|
||
|
in
|
||
|
flake-parts-lib.mkTransposedPerSystemModule {
|
||
|
name = "nixvimConfigurations";
|
||
|
option = lib.mkOption {
|
||
|
type = lib.types.lazyAttrsOf configurationType;
|
||
|
default = { };
|
||
|
description = ''
|
||
|
An attribute set of Nixvim configurations.
|
||
|
'';
|
||
|
};
|
||
|
file = ./nixvimConfigurations.nix;
|
||
|
}
|