l 2 games: add doom{1,2} wrappers
This commit is contained in:
parent
fe05d5ac60
commit
26705829d8
|
@ -2,10 +2,28 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
mainUser = config.users.extraUsers.mainUser;
|
mainUser = config.users.extraUsers.mainUser;
|
||||||
|
doom = pkgs.writeDash "doom" ''
|
||||||
|
DOOM_DIR=''${DOOM_DIR:-~/doom/}
|
||||||
|
${pkgs.zandronum}/bin/zandronum \
|
||||||
|
-file $DOOM_DIR/lib/brutalv20.pk3 \
|
||||||
|
-file $DOOM_DIR/lib/RebotStarcraftMarines.pk3 \
|
||||||
|
-fov 120 \
|
||||||
|
"$@"
|
||||||
|
'';
|
||||||
|
doom1 = pkgs.writeDashBin "doom1" ''
|
||||||
|
DOOM_DIR=''${DOOM_DIR:-~/doom/}
|
||||||
|
${doom} -iwad $DOOM_DIR/wads/stock/doom.wad "$@"
|
||||||
|
'';
|
||||||
|
doom2 = pkgs.writeDashBin "doom2" ''
|
||||||
|
DOOM_DIR=''${DOOM_DIR:-~/doom/}
|
||||||
|
${doom} -iwad $DOOM_DIR/wads/stock/doom2.wad "$@"
|
||||||
|
'';
|
||||||
|
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
dwarf_fortress
|
dwarf_fortress
|
||||||
|
doom1
|
||||||
|
doom2
|
||||||
];
|
];
|
||||||
|
|
||||||
users.extraUsers = {
|
users.extraUsers = {
|
||||||
|
|
Loading…
Reference in a new issue