diff options
author | makefu <github@syntax-fehler.de> | 2016-12-12 15:34:13 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-12-12 15:34:13 +0100 |
commit | bc2b56baaf67623bed232b321607da8c25bbdaec (patch) | |
tree | c3341b27ec10cc730d7ae7bd5f7f6627ee3ce037 /lass/2configs/games.nix | |
parent | b1092b16a6be15f8121619e6d2eaf8d732b873ff (diff) | |
parent | a64a9668aa0639e78a6c677c17718731d8f2418c (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'lass/2configs/games.nix')
-rw-r--r-- | lass/2configs/games.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lass/2configs/games.nix b/lass/2configs/games.nix index 0eec97922..e7c7de938 100644 --- a/lass/2configs/games.nix +++ b/lass/2configs/games.nix @@ -2,10 +2,42 @@ let mainUser = config.users.extraUsers.mainUser; + vdoom = pkgs.writeDash "vdoom" '' + ${pkgs.zandronum-bin}/bin/zandronum \ + -fov 120 \ + "$@" + ''; + doom = pkgs.writeDash "doom" '' + DOOM_DIR=''${DOOM_DIR:-~/doom/} + ${vdoom} \ + -file $DOOM_DIR/lib/brutalv20.pk3 \ + -file $DOOM_DIR/lib/RebotStarcraftMarines.pk3 \ + "$@" + ''; + 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 "$@" + ''; + vdoom1 = pkgs.writeDashBin "vdoom1" '' + DOOM_DIR=''${DOOM_DIR:-~/doom/} + ${vdoom} -iwad $DOOM_DIR/wads/stock/doom.wad "$@" + ''; + vdoom2 = pkgs.writeDashBin "vdoom2" '' + DOOM_DIR=''${DOOM_DIR:-~/doom/} + ${vdoom} -iwad $DOOM_DIR/wads/stock/doom2.wad "$@" + ''; in { environment.systemPackages = with pkgs; [ dwarf_fortress + doom1 + doom2 + vdoom1 + vdoom2 ]; users.extraUsers = { |