diff --git a/hosts/pinwheel/modules/default.nix b/hosts/pinwheel/modules/default.nix index 2ff77fc..26c8135 100644 --- a/hosts/pinwheel/modules/default.nix +++ b/hosts/pinwheel/modules/default.nix @@ -24,6 +24,7 @@ in openvpn.enable = true; go.enable = true; rust.enable = true; + scala.enable = true; keyboard.enable = true; containers = { docker.enable = true; diff --git a/hosts/pinwheel/modules/scala/default.nix b/hosts/pinwheel/modules/scala/default.nix new file mode 100644 index 0000000..bce20f7 --- /dev/null +++ b/hosts/pinwheel/modules/scala/default.nix @@ -0,0 +1,19 @@ +{ pkgs, lib, config, ... }: +let + enabled = config.mod.scala.enable; +in +{ + options = { + mod.scala = { + enable = lib.mkEnableOption "enable scala module"; + }; + }; + + config = lib.mkIf enabled { + home-manager.users.alex = { + home.packages = [ + pkgs.metals + ]; + }; + }; +}