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"