From cd5a5b8356262267802e4447c826fd4847eb04e0 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 19 Mar 2022 19:29:53 +0100 Subject: [PATCH] games/steam-sandbox: Bind factorio directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It doesn’t use XDG directories, so all settings are reset and only some aspects that are synced via Steam Cloud were kept. --- users/simon/modules/games.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/users/simon/modules/games.nix b/users/simon/modules/games.nix index 1fc7b62..f56a218 100644 --- a/users/simon/modules/games.nix +++ b/users/simon/modules/games.nix @@ -6,7 +6,7 @@ let steam-sandbox = pkgs.writeShellScriptBin "steam-sandbox" /* bash */ '' set -euo pipefail base_dir="''${XDG_DATA_HOME:-$HOME/.local/share}/steam-sandbox" - mkdir -p "$base_dir"/{.local/share,.steam,.config,data} + mkdir -p "$base_dir"/{.local/share,.steam,.config,.factorio,data} bubblewrap_args=( # sandboxing --unshare-all @@ -60,6 +60,7 @@ let --bind "$base_dir/.local/share" "$HOME/.local/share" --bind "$base_dir/.steam" "$HOME/.steam" --bind "$base_dir/.config" "$HOME/.config" + --bind "$base_dir/.factorio" "$HOME/.factorio" --bind "$base_dir/data" "$HOME/data" # input