configuration
flake
hosts
lib
modules
pkgs
chromium-incognito
clerie-backup
clerie-keys
clerie-sops
clerie-system-remote-install
clerie-system-upgrade
clerie-update-nixfiles
factorio-launcher
default.nix
launch-factorio.sh
feeds-dir
git-checkout-github-pr
git-diff-word
git-pp
git-show-link
iot-data
nix-remove-result-links
nixfiles
overrides
print-afra
run-with-docker-group
ssh-gpg
update-from-hydra
uptimestatus
overlay.nix
users
.gitignore
README.md
flake.lock
flake.nix
26 lines
503 B
Nix
26 lines
503 B
Nix
{ pkgs, lib, ... }:
|
|
|
|
pkgs.buildFHSEnv {
|
|
name = "factorio-launcher";
|
|
targetPkgs = pkgs: (with pkgs; [
|
|
alsa-lib
|
|
libGL
|
|
libpulseaudio
|
|
libxkbcommon
|
|
wayland
|
|
]) ++ (with pkgs.xorg; [
|
|
libICE
|
|
libSM
|
|
libX11
|
|
libXcursor
|
|
libXext
|
|
libXi
|
|
libXinerama
|
|
libXrandr
|
|
]);
|
|
runScript = lib.getExe (pkgs.writeShellApplication {
|
|
name = "launch-factorio";
|
|
text = builtins.readFile ./launch-factorio.sh;
|
|
});
|
|
}
|