diff --git a/darwin/homebrew.nix b/darwin/homebrew.nix index b0f20ba..1fe6f38 100644 --- a/darwin/homebrew.nix +++ b/darwin/homebrew.nix @@ -85,7 +85,7 @@ in socket = "${primaryUser.homeDirectory}/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh"; in lib.mkIf (caskPresent "secretive" && config ? home-manager) { - home.sessionVariables.SSH_AUTH_SOCKET = socket; + home.sessionVariables.SSH_AUTH_SOCK = socket; programs.ssh = { enable = true; matchBlocks."*".extraOptions = { diff --git a/home/services/tarsnap.nix b/home/services/tarsnap.nix index 7b5c7f2..d7bdc0b 100644 --- a/home/services/tarsnap.nix +++ b/home/services/tarsnap.nix @@ -5,10 +5,13 @@ let logPath = "${config.xdg.stateHome}/tarsnap"; tarsnapBackup = pkgs.writeShellScriptBin "tarsnap-backup-helper" '' + date=$(date -u +%Y-%m-%dT%H:%M:%SZ) + echo + echo "Running tarsnap backup for $date" /opt/homebrew/bin/tarsnap -c \ --configfile ${config.home.homeDirectory}/.tarsnaprc \ --keyfile ${config.xdg.configHome}/tarsnap/write-only.key \ - -f $(uname -n)-$(date -u +%Y-%m-%dT%H:%M:%SZ) \ + -f $(uname -n)-$date \ ${config.home.homeDirectory}/{dotfiles.nix,Desktop,Development,Documents,Downloads} ''; in