feat(games): add Hytale game module and Flatpak support
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
./containers
|
./containers
|
||||||
./apps
|
./apps
|
||||||
./vms
|
./vms
|
||||||
|
./games
|
||||||
];
|
];
|
||||||
|
|
||||||
security.tpm2 = {
|
security.tpm2 = {
|
||||||
|
|||||||
5
nixos/ryu/games/default.nix
Normal file
5
nixos/ryu/games/default.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{...}: {
|
||||||
|
imports = [
|
||||||
|
./hytale.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
35
nixos/ryu/games/hytale.nix
Normal file
35
nixos/ryu/games/hytale.nix
Normal 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";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -11,5 +11,6 @@
|
|||||||
./gamemode.nix
|
./gamemode.nix
|
||||||
./droidcam.nix
|
./droidcam.nix
|
||||||
./wireshark.nix
|
./wireshark.nix
|
||||||
|
./flatpak.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
5
nixos/ryu/programs/flatpak.nix
Normal file
5
nixos/ryu/programs/flatpak.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{...}: {
|
||||||
|
services.flatpak = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
0
nixos/tako/services/games/hytale.nix
Normal file
0
nixos/tako/services/games/hytale.nix
Normal file
Reference in New Issue
Block a user