feat(games): add Hytale game module and Flatpak support
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled

This commit is contained in:
2026-01-24 23:50:55 +05:30
parent 869778df2a
commit ab4c22592a
6 changed files with 47 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
./containers ./containers
./apps ./apps
./vms ./vms
./games
]; ];
security.tpm2 = { security.tpm2 = {

View File

@@ -0,0 +1,5 @@
{...}: {
imports = [
./hytale.nix
];
}

View File

@@ -0,0 +1,35 @@
{pkgs, ...}: let
version = "2026.01.21-11273a4";
hytale-launcher = pkgs.fetchzip {
url = "https://launcher.hytale.com/builds/release/linux/amd64/hytale-launcher-${version}.zip";
sha256 = "sha256-PPdYmLxAVyqSkhulZXLcaEuhofCHZ4JcDJXIQ+lBhFg=";
};
in {
environment.systemPackages = with pkgs; [
(pkgs.buildFHSEnv {
pname = "hytale";
inherit version;
targetPkgs = p:
with p; [
# Launcher
libsoup_3
gdk-pixbuf
glib
gtk3
webkitgtk_4_1
# Game
alsa-lib
icu
libGL
openssl
udev
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
];
runScript = "${hytale-launcher}/hytale-launcher";
})
];
}

View File

@@ -11,5 +11,6 @@
./gamemode.nix ./gamemode.nix
./droidcam.nix ./droidcam.nix
./wireshark.nix ./wireshark.nix
./flatpak.nix
]; ];
} }

View File

@@ -0,0 +1,5 @@
{...}: {
services.flatpak = {
enable = true;
};
}

View File