Files
server-config/containers/server-n0/maven.nix
T
Floweynt 76fa38e34c
flake-check / flake-check (push) Canceled after 0s
lint / lint (push) Canceled after 0s
diff-tag / dix (push) Canceled after 0s
initial commit
2026-08-31 08:41:45 -05:00

42 lines
806 B
Nix

{
name,
hostInfo,
dsl,
...
}:
let
inherit (dsl) mkContainer mkService;
inherit (hostInfo.paths) data;
in
mkContainer {
inherit name;
svc.autoStart = true;
resources.fs."/app/data" = {
hostPath = "${data}/web/reposilite";
isReadOnly = false;
};
users = [
{
name = "reposilite";
uid = 1000;
home = "/app";
}
];
service =
{ pkgs, lib, ... }:
mkService {
description = "Reposilite";
execStart = "${lib.getExe' pkgs.reposilite "reposilite"} --working-directory /app/data";
workingDir = "/app/data";
serviceConfig = {
User = "reposilite";
PrivateTmp = true;
ReadWritePaths = [ "/app/data" ];
};
}
// {
environment.JAVA_OPTS = "-Xmx128M";
};
net.expose.tcp = [ 8080 ];
}