From a817464b38958dc1ac0bb6813751c28a188db437 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 11 Jan 2025 22:36:09 -0500 Subject: [PATCH] Preserve steam directories. --- nix/configuration/roles/steam/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nix/configuration/roles/steam/default.nix b/nix/configuration/roles/steam/default.nix index 4f7a32e..532b115 100644 --- a/nix/configuration/roles/steam/default.nix +++ b/nix/configuration/roles/steam/default.nix @@ -31,6 +31,16 @@ # dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers }; + + environment.persistence."/persist" = lib.mkIf (!config.me.buildingIso) { + hideMounts = true; + users.talexander = { + directories = [ + ".local/share/Steam" + ".steam" + ]; + }; + }; }) ] );