From 735e3231eda686e7c0a3ceb229cf98fefd38630a Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Wed, 7 May 2025 00:02:21 -0400 Subject: [PATCH] users/infinidoge: disable prismlauncher sync where unnecessary --- users/infinidoge/default.nix | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/users/infinidoge/default.nix b/users/infinidoge/default.nix index 114dd1c..9ee8c64 100644 --- a/users/infinidoge/default.nix +++ b/users/infinidoge/default.nix @@ -40,22 +40,25 @@ in services.unison = { enable = true; pairs = { - "PrismLauncher" = mkIf (main.networking.hostName != "Infini-DL360") { - roots = [ - "/home/infinidoge/.local/share/PrismLauncher" - "ssh://inx.moe/sync/PrismLauncher" - ]; - commandOptions = { - ignore = [ - "BelowPath cache" - "BelowPath logs" - "BelowPath **/logs" - "Path **/*.log" - "BelowPath meta" - "Path metacache" - ]; - }; - }; + "PrismLauncher" = + mkIf + (main.networking.hostName != "Infini-DL360" && main.modules.desktop.gaming.prismlauncher.enable) + { + roots = [ + "/home/infinidoge/.local/share/PrismLauncher" + "ssh://inx.moe/sync/PrismLauncher" + ]; + commandOptions = { + ignore = [ + "BelowPath cache" + "BelowPath logs" + "BelowPath **/logs" + "Path **/*.log" + "BelowPath meta" + "Path metacache" + ]; + }; + }; }; };