Skip to content

Commit

Permalink
Simplify sbt config
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Oct 8, 2024
1 parent fc93d3a commit 76dfe45
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions home/roles/dev/scala/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,20 @@ in
options = {
custom.roles.dev.scala = {
enable = mkEnableOption "Scala";

repositories = mkOption {
type = types.str;
default = "";
description = "Lines to be added into repositories config";
};
};
};

config = mkIf cfg.enable {
home = {
packages = with pkgs; [
ammonite # REPL
sbt
];

file = {
".sbt" = {
recursive = true;
source = ./config;
};
".sbt/repositories".text = cfg.repositories;
};
};
};
Expand Down

0 comments on commit 76dfe45

Please sign in to comment.