diff options
author | tv <tv@krebsco.de> | 2016-12-01 21:59:25 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-12-01 21:59:25 +0100 |
commit | 1e599969524d9772ad9c891a383048d9fef843e5 (patch) | |
tree | 6ae4edef0df43dcd82a7dedfa1aa5e45741cd233 /lass/2configs/games.nix | |
parent | 32c59103f5315fb6160b1dd38df2c27647aaffdd (diff) | |
parent | f4ce5ea248c6dcb965f9367a4569a39f4be747af (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'lass/2configs/games.nix')
-rw-r--r-- | lass/2configs/games.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lass/2configs/games.nix b/lass/2configs/games.nix index 0eec97922..82b7eb2c9 100644 --- a/lass/2configs/games.nix +++ b/lass/2configs/games.nix @@ -2,10 +2,28 @@ let 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 { environment.systemPackages = with pkgs; [ dwarf_fortress + doom1 + doom2 ]; users.extraUsers = { |