nixos_config/nixos/hosts/tesla-nixos/configuration.nix

69 lines
1.7 KiB
Nix
Raw Normal View History

2026-03-10 21:50:51 +01:00
{ pkgs, ... }:
2026-02-01 15:53:16 +01:00
let
modpack = pkgs.fetchPackwizModpack {
url = "https://git.malice.zone/alisceon/tfcpack/-/raw/main/pack.toml";
2026-02-05 13:05:25 +01:00
packHash = "sha256-AKmS+CLiex+N2YipHNbOJpOS+cUut4fcG2oKCWuXBwY=";
2026-02-01 15:53:16 +01:00
};
in
2025-08-12 21:00:01 +02:00
{
2026-03-10 21:50:51 +01:00
imports = [ ./hardware-configuration.nix ];
2025-09-29 15:56:43 +02:00
security.sudo.wheelNeedsPassword = false;
2025-08-12 21:00:01 +02:00
networking.hostName = "tesla-nixos";
2026-05-07 21:52:59 +02:00
services.qemuGuest.enable = true;
2026-03-10 21:50:51 +01:00
boot = {
initrd.enable = true;
loader.systemd-boot.enable = true;
};
environment.systemPackages = with pkgs; [ tmux ];
2026-05-07 22:25:33 +02:00
virtualisation.containers.enable = true;
virtualisation = {
podman = {
enable = true;
2026-05-07 22:25:33 +02:00
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
};
2026-03-10 21:50:51 +01:00
2026-02-03 19:12:40 +01:00
networking.firewall.allowedTCPPorts = [
2026-03-10 21:50:51 +01:00
8100
2026-02-03 19:12:40 +01:00
];
2026-03-10 21:50:51 +01:00
2026-02-01 15:53:16 +01:00
services.minecraft-servers = {
enable = true;
eula = true;
openFirewall = true;
2026-02-01 16:10:29 +01:00
servers.tfcpack = {
2026-02-01 15:53:16 +01:00
enable = true;
2026-02-01 17:01:59 +01:00
package = pkgs.neoforgeServers.neoforge-1_21_1-21_1_219;
2026-02-01 16:10:29 +01:00
autoStart = true;
serverProperties = {
2026-03-10 21:50:51 +01:00
motd = "TFC Pack - Tesla Nixos";
max-players = "20";
view-distance = "32";
level-type = "tfc\\:overworld";
spawn-protection = "0";
max-tick-time = "-1";
2026-02-01 15:53:16 +01:00
};
2026-03-10 21:50:51 +01:00
jvmOpts = [
2026-02-01 20:12:11 +01:00
"-Xmx24G"
2026-02-01 16:10:29 +01:00
"-Xms24G"
2026-02-01 18:46:55 +01:00
"-XX:+UseZGC"
"-XX:+ZGenerational"
2026-02-01 16:10:29 +01:00
];
2026-03-10 21:50:51 +01:00
symlinks.mods = "${modpack}/mods";
files."config/bluemap/core.conf" = "${modpack}/config/bluemap/core.conf";
};
};
2026-05-07 22:25:33 +02:00
virtualisation.oci-containers.backend = "podman";
2026-05-07 22:10:48 +02:00
virtualisation.oci-containers.containers.isponsorblocktv = {
image = "ghcr.io/dmunozv04/isponsorblocktv:latest";
autoStart = true;
volumes = [
"/home/alisceon/isponsorblocktv:/app/data"
];
};
2026-03-10 21:50:51 +01:00
}