From 31b3f0c71b4f77ce0da695bf99b692b1d20417b8 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sun, 7 Apr 2024 20:32:31 +0200 Subject: [PATCH] pinwheel: Add `scala` module --- hosts/pinwheel/modules/default.nix | 1 + hosts/pinwheel/modules/scala/default.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 hosts/pinwheel/modules/scala/default.nix 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 + ]; + }; + }; +}