oizys/modules/languages/default.nix

25 lines
480 B
Nix
Raw Normal View History

2024-02-27 10:11:44 -06:00
{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkOption types literalExpression mdDoc;
cfg = config.oizys.languages;
in {
imports = [./nim.nix ./tex.nix ./misc.nix ./node.nix ./python.nix];
options.oizys.languages = mkOption {
2024-02-27 10:41:27 -06:00
type = with types; (listOf str);
2024-02-27 10:11:44 -06:00
description = lib.mdDoc ''
List of programming languages to enable.
'';
2024-02-27 10:41:27 -06:00
default = [];
2024-02-27 10:11:44 -06:00
example = literalExpression ''
[
"python"
"nim"
]
'';
};
}