diff --git a/home/services/dark-mode-notify.nix b/home/services/dark-mode-notify.nix index f4e1653..4c453c9 100644 --- a/home/services/dark-mode-notify.nix +++ b/home/services/dark-mode-notify.nix @@ -1,8 +1,8 @@ -{ pkgs, ... }: { +{ config, pkgs, ... }: { # dark-mode-notify configuration # {{{ launchd.agents.dark-mode-notify = - let logPath = "/var/log/dark-mode-notify"; in + let logPath = "${config.xdg.stateHome}/dark-mode-notify"; in { enable = true; config = { diff --git a/home/services/tarsnap.nix b/home/services/tarsnap.nix index 44cbf60..7b5c7f2 100644 --- a/home/services/tarsnap.nix +++ b/home/services/tarsnap.nix @@ -3,7 +3,7 @@ # {{{ launchd.agents.tarsnap = let - logPath = "/var/log/tarsnap"; + logPath = "${config.xdg.stateHome}/tarsnap"; tarsnapBackup = pkgs.writeShellScriptBin "tarsnap-backup-helper" '' /opt/homebrew/bin/tarsnap -c \ --configfile ${config.home.homeDirectory}/.tarsnaprc \