2022-06-23 02:57:41 -04:00
|
|
|
{ config, lib, pkgs, inputs, ... }:
|
2022-10-13 22:13:43 -04:00
|
|
|
let np = config.nathan.programs;
|
|
|
|
in with lib; {
|
2022-06-23 02:57:41 -04:00
|
|
|
config = mkIf np.games {
|
2022-10-13 22:13:43 -04:00
|
|
|
environment.systemPackages = let
|
|
|
|
# https://github.com/Admicos/minecraft-wayland
|
|
|
|
glfw-patched = pkgs.glfw-wayland.overrideAttrs (attrs: {
|
|
|
|
patches = attrs.patches ++ [
|
|
|
|
../../../patches/minecraft/0003-Don-t-crash-on-calls-to-focus-or-icon.patch
|
|
|
|
../../../patches/minecraft/0004-wayland-fix-broken-opengl-screenshots-on-mutter.patch
|
2022-06-23 02:57:41 -04:00
|
|
|
];
|
2022-10-13 22:13:43 -04:00
|
|
|
});
|
|
|
|
stable-packages = with pkgs; [
|
|
|
|
# Dwarf fortress
|
|
|
|
(dwarf-fortress-packages.dwarf-fortress-full.override {
|
|
|
|
enableFPS = true;
|
|
|
|
})
|
2022-10-18 09:54:58 -04:00
|
|
|
# Prism Launcher minecraft stuff
|
|
|
|
inputs.prismlauncher.packages."${system}".prismlauncher
|
2022-10-13 22:13:43 -04:00
|
|
|
glfw-patched
|
2022-11-29 00:19:59 -05:00
|
|
|
gamescope
|
2022-10-13 22:13:43 -04:00
|
|
|
];
|
|
|
|
unstable-packages =
|
|
|
|
with inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}";
|
|
|
|
[
|
2022-06-23 02:57:41 -04:00
|
|
|
# Packwiz for maintaing modpacks
|
|
|
|
packwiz
|
|
|
|
];
|
2022-10-13 22:13:43 -04:00
|
|
|
in stable-packages ++ unstable-packages;
|
2022-07-18 16:37:10 -04:00
|
|
|
# Install steam
|
|
|
|
programs.steam.enable = true;
|
2022-11-29 00:19:59 -05:00
|
|
|
# Make steam work with gamescope
|
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
|
|
steam = pkgs.steam.override {
|
|
|
|
extraPkgs = pkgs:
|
|
|
|
with pkgs; [
|
|
|
|
xorg.libXcursor
|
|
|
|
xorg.libXi
|
|
|
|
xorg.libXinerama
|
|
|
|
xorg.libXScrnSaver
|
|
|
|
libpng
|
|
|
|
libpulseaudio
|
|
|
|
libvorbis
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
libkrb5
|
|
|
|
keyutils
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2022-06-23 02:57:41 -04:00
|
|
|
};
|
|
|
|
}
|