gaming: install Minecraft Bedrock via nix-flatpak

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>
This commit is contained in:
2026-07-31 10:27:10 +01:00
parent eed3db9f05
commit fc2c8b9cf8
3 changed files with 34 additions and 1 deletions

16
flake.lock generated
View File

@@ -137,6 +137,21 @@
"type": "github" "type": "github"
} }
}, },
"nix-flatpak": {
"locked": {
"lastModified": 1783368811,
"narHash": "sha256-0H8jDwR4Kegb3heaTrH1ftbgKfZVDT8JE+46uXxDy/Q=",
"owner": "gmodena",
"repo": "nix-flatpak",
"rev": "20d42f0ee98c9fe9f85e8d1de474f1409ed10d05",
"type": "github"
},
"original": {
"owner": "gmodena",
"repo": "nix-flatpak",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1784796856, "lastModified": 1784796856,
@@ -203,6 +218,7 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprland-preview-share-picker": "hyprland-preview-share-picker", "hyprland-preview-share-picker": "hyprland-preview-share-picker",
"illogical-flake": "illogical-flake", "illogical-flake": "illogical-flake",
"nix-flatpak": "nix-flatpak",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"spicetify-nix": "spicetify-nix" "spicetify-nix": "spicetify-nix"
} }

View File

@@ -48,6 +48,11 @@
url = "github:Gerg-L/spicetify-nix"; url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# Declarative Flatpak app/remote management (extends services.flatpak). Used
# for the Minecraft Bedrock launcher, whose Flatpak build tracks newer,
# pairip-protected Bedrock releases ahead of the nixpkgs package.
nix-flatpak.url = "github:gmodena/nix-flatpak";
}; };
outputs = { nixpkgs, home-manager, ... }@inputs: { outputs = { nixpkgs, home-manager, ... }@inputs: {

View File

@@ -1,6 +1,8 @@
{ pkgs, ... }: { inputs, pkgs, ... }:
{ {
imports = [ inputs.nix-flatpak.nixosModules.nix-flatpak ];
programs.steam = { programs.steam = {
enable = true; enable = true;
remotePlay.openFirewall = true; remotePlay.openFirewall = true;
@@ -17,4 +19,14 @@
prismlauncher prismlauncher
protonup-qt 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" ];
};
} }