From e6db9453107e6d72b2499264d465516f8ba127bd Mon Sep 17 00:00:00 2001 From: mat ess Date: Tue, 8 Nov 2022 19:11:02 -0500 Subject: [PATCH] Move service logs into ~ --- home/services/dark-mode-notify.nix | 4 ++-- home/services/tarsnap.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 \