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 + ]; + }; +}