etc/nixos/home-manager/packages/game-extras.nix
BuyMyMojo 675de25900
a
2025-04-16 02:19:59 +10:00

33 lines
568 B
Nix

{
config,
pkgs,
unstable,
inputs,
lib,
...
}:
let
withExtraPackages =
pkg: extraPackages:
pkgs.runCommand "${pkg.name}-wrapped" { nativeBuildInputs = [ pkgs.makeWrapper ]; } ''
for exe in ${lib.getBin pkg}/bin/*; do
makeWrapper $exe $out/bin/$(basename $exe) --prefix PATH : ${lib.makeBinPath extraPackages}
done
'';
in
{
home.packages =
with pkgs;
with unstable;
with inputs;
[
# === Factorio related ===
yafc-ce
pactorio
factoriolab
# === Factorio related ===
];
}