From bb1c754f976d09d839d46eba9c8aada2e1003649 Mon Sep 17 00:00:00 2001 From: Isaac Corbrey Date: Thu, 18 Jun 2026 09:18:19 -0400 Subject: [PATCH] home: enable gleam module with elixir toggle Elixir is needed by gtz's Erlang target (via tz + timex Hex packages) for IANA timezone lookups. Adds elixir as an opt-in toggle on the existing gleam module and enables the module on isaac-corbrey-l. --- hosts/isaac-corbrey-l/home/isaac_corbrey.nix | 1 + modules/home/default.nix | 1 + modules/home/gleam.nix | 30 ++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 modules/home/gleam.nix diff --git a/hosts/isaac-corbrey-l/home/isaac_corbrey.nix b/hosts/isaac-corbrey-l/home/isaac_corbrey.nix index 7c35969..7fd1729 100644 --- a/hosts/isaac-corbrey-l/home/isaac_corbrey.nix +++ b/hosts/isaac-corbrey-l/home/isaac_corbrey.nix @@ -62,6 +62,7 @@ webdev-common.enable = true; langs-common.enable = true; docker.enable = true; + gleam.enable = true; java.enable = true; rust.enable = true; }; diff --git a/modules/home/default.nix b/modules/home/default.nix index 2f074d3..9ae70ca 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -14,6 +14,7 @@ ./fish.nix ./flatpak.nix ./fonts.nix + ./gleam.nix ./global.nix ./go.nix ./gtk.nix diff --git a/modules/home/gleam.nix b/modules/home/gleam.nix new file mode 100644 index 0000000..941aaa1 --- /dev/null +++ b/modules/home/gleam.nix @@ -0,0 +1,30 @@ +{ + config, + lib, + pkgs, + utils, + ... +}: { + options.modules.home.gleam = { + enable = lib.mkEnableOption "gleam"; + + erlang = utils.mkToggle "erlang" true; + rebar3 = utils.mkToggle "rebar3" true; + elixir = utils.mkToggle "elixir" true; + }; + + config = let + gleam = config.modules.home.gleam; + in + lib.mkIf gleam.enable { + home.packages = + (utils.mkIfOptions gleam { + erlang = pkgs.erlang; + rebar3 = pkgs.rebar3; + elixir = pkgs.elixir; + }) + ++ [ + pkgs.gleam + ]; + }; +} -- 2.51.2