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