about summary refs log tree commit diff
path: root/home/modules/games.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/modules/games.nix')
-rw-r--r--home/modules/games.nix20
1 files changed, 14 insertions, 6 deletions
diff --git a/home/modules/games.nix b/home/modules/games.nix
index 14b2d1b4b325..c68342ba6bb7 100644
--- a/home/modules/games.nix
+++ b/home/modules/games.nix
@@ -30,15 +30,23 @@ let
   '';
 
   df = runCommand "dwarf-fortress" {} ''
-     mkdir -p $out/bin
-     sed \
-       -e '4icp -f ${init} "$DF_DIR/data/init/init.txt"' \
-       -e '4icp -f ${d_init} "$DF_DIR/data/init/d_init.txt"' \
-       < "${df-full}/bin/dwarf-fortress" >"$out/bin/dwarf-fortress"
-     chmod +x $out/bin/dwarf-fortress
+    mkdir -p $out/bin
+    sed \
+      -e '4icp -f ${init} "$DF_DIR/data/init/init.txt"' \
+      -e '4icp -f ${d_init} "$DF_DIR/data/init/d_init.txt"' \
+      < "${df-full}/bin/dwarf-fortress" >"$out/bin/dwarf-fortress"
+
+    shopt -s extglob
+    ln -s ${df-full}/bin/!(dwarf-fortress) $out/bin
+
+    chmod +x $out/bin/dwarf-fortress
   '';
 
 in {
+  imports = [
+    ./obs.nix
+  ];
+
   home.packages = [
     crawl
     df