mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-08-22 03:07:18 -05:00
30 lines
553 B
Nix
30 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"
|
|
]
|
|
'';
|
|
};
|
|
}
|