mirror of
https://github.com/zephrynis/nix-flake.git
synced 2026-08-17 21:45:53 +00:00
Add the nix-flatpak flake input and wire its NixOS module into the gaming module to declaratively install io.mrarm.mcpelauncher from Flathub. The Flatpak build tracks the newer, pairip-protected Bedrock releases ahead of the nixpkgs mcpelauncher package. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
33 lines
1.0 KiB
Nix
33 lines
1.0 KiB
Nix
{ inputs, pkgs, ... }:
|
|
|
|
{
|
|
imports = [ inputs.nix-flatpak.nixosModules.nix-flatpak ];
|
|
|
|
programs.steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
gamescopeSession.enable = true; # "Steam (gamescope)" session in SDDM
|
|
extraCompatPackages = [ pkgs.proton-ge-bin ];
|
|
};
|
|
|
|
programs.gamemode.enable = true;
|
|
programs.gamescope.enable = true;
|
|
# programs.gamescope.capSysNice = true; # left off — known to break gamescope under Steam
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
mangohud
|
|
prismlauncher
|
|
protonup-qt
|
|
];
|
|
|
|
# Minecraft Bedrock via mcpelauncher (unofficial; runs the Android ARM build
|
|
# through a libc shim — you must own Bedrock on Google Play). Installed as a
|
|
# Flatpak (io.mrarm.mcpelauncher) rather than the nixpkgs package, whose
|
|
# launcher lagged the newer, pairip-protected Bedrock releases. nix-flatpak
|
|
# adds the Flathub remote (its default) and installs the app on activation.
|
|
services.flatpak = {
|
|
enable = true;
|
|
packages = [ "io.mrarm.mcpelauncher" ];
|
|
};
|
|
}
|