From 01fec984d84f52cabbc69c6aa9fee88ea4ed5925 Mon Sep 17 00:00:00 2001 From: avivbintangaringga Date: Sat, 18 Jul 2026 14:16:45 +0700 Subject: [PATCH] fix(nix-monitor): implement pluginDataDir() --- nix-monitor/nix_monitor_service.luau | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix-monitor/nix_monitor_service.luau b/nix-monitor/nix_monitor_service.luau index b21bb87..8252cc8 100644 --- a/nix-monitor/nix_monitor_service.luau +++ b/nix-monitor/nix_monitor_service.luau @@ -39,7 +39,7 @@ local updateCheckInterval = cfg("update_check_interval") local updateCheckDurationThreshold = cfg("update_check_duration_threshold") local systemStatsCheckInterval = cfg("system_stats_check_interval") local systemStatsCheckDurationThreshold = cfg("system_stats_check_duration_threshold") -local stateDir = "/tmp/nix-monitor" +local stateDir = noctalia.pluginDataDir() or "/tmp/nix-monitor" local remoteHashFile = stateDir .. "/remoteHash" local storeSizeFile = stateDir .. "/storeSize" local closureSizeFile = stateDir .. "/closureSize"