feat: add ~/.local/bin support for user scripts

Configure PATH and backup strategy for non-declarative user scripts.

- Add ~/.local/bin to sessionPath in global home-manager config
- Include ~/.local/bin in onsite borgbackup (hourly to viridian)
- Include ~/.local/bin in offsite borgbackup (daily to borgbase)
This commit is contained in:
♥ Minnie ♥ 2025-12-23 11:16:45 +08:00
parent 571c034691
commit d9079d778f
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
3 changed files with 5 additions and 0 deletions

View file

@ -39,6 +39,9 @@
sessionVariables = { sessionVariables = {
EDITOR = "nvim"; # Default text editor for CLI operations EDITOR = "nvim"; # Default text editor for CLI operations
}; };
sessionPath = [
"$HOME/.local/bin" # User scripts and executables
];
}; };
# Automatically restart systemd user services on configuration changes # Automatically restart systemd user services on configuration changes

View file

@ -52,6 +52,7 @@
# Dotfiles (critical user configuration) # Dotfiles (critical user configuration)
"/btrfs-subvolumes/hm-sajenim/.ssh" "/btrfs-subvolumes/hm-sajenim/.ssh"
"/btrfs-subvolumes/hm-sajenim/.gnupg" "/btrfs-subvolumes/hm-sajenim/.gnupg"
"/btrfs-subvolumes/hm-sajenim/.local/bin"
# Persistent files (actual storage location) # Persistent files (actual storage location)
"/persist/etc/machine-id" "/persist/etc/machine-id"

View file

@ -48,6 +48,7 @@ in {
# Dotfiles (critical user configuration) # Dotfiles (critical user configuration)
"/btrfs-subvolumes/hm-sajenim/.ssh" "/btrfs-subvolumes/hm-sajenim/.ssh"
"/btrfs-subvolumes/hm-sajenim/.gnupg" "/btrfs-subvolumes/hm-sajenim/.gnupg"
"/btrfs-subvolumes/hm-sajenim/.local/bin"
# Persistent files (actual storage location) # Persistent files (actual storage location)
"/persist/etc/machine-id" "/persist/etc/machine-id"