pinwheel: Add scala module
This commit is contained in:
@@ -24,6 +24,7 @@ in
|
|||||||
openvpn.enable = true;
|
openvpn.enable = true;
|
||||||
go.enable = true;
|
go.enable = true;
|
||||||
rust.enable = true;
|
rust.enable = true;
|
||||||
|
scala.enable = true;
|
||||||
keyboard.enable = true;
|
keyboard.enable = true;
|
||||||
containers = {
|
containers = {
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
|
|||||||
19
hosts/pinwheel/modules/scala/default.nix
Normal file
19
hosts/pinwheel/modules/scala/default.nix
Normal file
@@ -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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user