Skip to content

Instantly share code, notes, and snippets.

@caryoscelus
Created September 21, 2023 12:51
Show Gist options
  • Save caryoscelus/887d918dc9932fed5f4d37862db6cfc7 to your computer and use it in GitHub Desktop.
Save caryoscelus/887d918dc9932fed5f4d37862db6cfc7 to your computer and use it in GitHub Desktop.
run games in nixos shell.nix
{ pkgs ? import <nixpkgs> {} }:
(pkgs.buildFHSEnv {
name = "launch-env";
targetPkgs = pkgs: (with pkgs; [
udev
alsa-lib
fontconfig
libxkbcommon
libGL
]) ++ (with pkgs.xorg; [
libX11
libXcursor
libXrandr
libXext
libXinerama
libXi
]);
multiPkgs = pkgs: (with pkgs; [
udev
alsa-lib
]);
runScript = "bash";
}).env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment