NOflake/extras/minecraft-server.nix

19 lines
487 B
Nix
Raw Permalink Normal View History

2024-06-01 17:07:25 -07:00
{pkgs, ...}: {
2025-04-30 19:29:00 -07:00
environment.systemPackages = with pkgs; [
temurin-jre-bin-17
];
networking.firewall.allowedTCPPorts = [25565];
2024-06-26 13:40:11 -07:00
2025-04-30 19:29:00 -07:00
services.snapper.configs = {
home = {
SUBVOLUME = "/home";
ALLOW_USERS = ["mc"];
TIMELINE_CREATE = true;
TIMELINE_CLEANUP = true;
TIMELINE_LIMIT_HOURLY = "5";
TIMELINE_LIMIT_DAILY = "7";
};
2024-06-26 13:40:11 -07:00
};
2025-04-30 19:29:00 -07:00
services.snapper.snapshotInterval = "*:0/5";
2024-06-01 17:07:25 -07:00
}