Fixes and tweaks
parent
76c0b03e49
commit
a79e7a9664
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue