1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-22 10:19:39 +01:00
home-manager/tests/modules/programs/sbt/user-config-path.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

42 lines
788 B
Nix

{ pkgs, ... }:
let
plugins = [
{
org = "a";
artifact = "b";
version = "c";
}
];
credentials = [
{
realm = "a";
host = "b";
user = "c";
passwordCommand = "d";
}
];
repositories = [ "local" ];
baseSbtPath = ".config/sbt";
in
{
config = {
programs.sbt = {
enable = true;
plugins = plugins;
credentials = credentials;
repositories = repositories;
baseUserConfigPath = ".config/sbt";
package = pkgs.writeScriptBin "sbt" "";
};
nmt.script = ''
assertFileExists "home-files/${baseSbtPath}/1.0/plugins/plugins.sbt"
assertFileExists "home-files/${baseSbtPath}/1.0/credentials.sbt"
assertFileExists "home-files/${baseSbtPath}/repositories"
'';
};
}