oizys/modules/languages/default.nix
2024-06-14 11:52:48 -05:00

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"
]
'';
};
}