oizys/modules/langs/misc.nix

16 lines
267 B
Nix
Raw Normal View History

2024-01-23 15:36:52 -06:00
{config, lib,pkgs,...}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.languages.misc;
in
2024-01-23 11:51:13 -06:00
{
2024-01-23 15:36:52 -06:00
options.languages.misc.enable = mkEnableOption "go + rustup";
config = mkIf cfg.enable {
2024-01-23 15:50:42 -06:00
2024-01-23 11:51:13 -06:00
environment.systemPackages = with pkgs; [
go
rustup
];
2024-01-23 15:36:52 -06:00
};
2024-01-23 11:51:13 -06:00
}