mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-27 14:10:45 -06:00
29 lines
553 B
Nix
29 lines
553 B
Nix
{ lib, ... }:
|
|
let
|
|
inherit (builtins) filter;
|
|
inherit (lib)
|
|
isNixFile
|
|
mkOption
|
|
types
|
|
literalExpression
|
|
mdDoc
|
|
;
|
|
inherit (lib.filesystem) listFilesRecursive;
|
|
in
|
|
{
|
|
imports = filter (f: (f != ./default.nix) && (isNixFile f)) (listFilesRecursive ./.);
|
|
|
|
options.oizys.languages = mkOption {
|
|
type = with types; (listOf str);
|
|
description = mdDoc ''
|
|
List of programming languages to enable.
|
|
'';
|
|
default = [ ];
|
|
example = literalExpression ''
|
|
[
|
|
"python"
|
|
"nim"
|
|
]
|
|
'';
|
|
};
|
|
}
|