Manage termscp config with nix
This commit is contained in:
parent
9e408bc65a
commit
63402edd8f
2 changed files with 117 additions and 0 deletions
|
|
@ -45,6 +45,7 @@
|
|||
./modules/zsh.nix
|
||||
./modules/ssh.nix
|
||||
./modules/git.nix
|
||||
./modules/termscp.nix
|
||||
];
|
||||
|
||||
home.username = "yanlin";
|
||||
|
|
|
|||
116
modules/termscp.nix
Normal file
116
modules/termscp.nix
Normal file
|
|
@ -0,0 +1,116 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.file."Library/Application Support/termscp/config.toml".text = ''
|
||||
# termscp configuration file
|
||||
# Generated by Nix - see modules/termscp.nix for customization
|
||||
|
||||
[ui]
|
||||
# Default file transfer protocol (SFTP, SCP, FTP, FTPS)
|
||||
default_protocol = "SFTP"
|
||||
|
||||
# Text editor to use for file editing
|
||||
text_editor = "nvim"
|
||||
|
||||
# Show hidden files by default
|
||||
show_hidden_files = true
|
||||
|
||||
# Group directories in file explorer
|
||||
# Options: "first", "last", "none"
|
||||
group_dirs = "first"
|
||||
|
||||
# Default local directory to start in
|
||||
local_directory = "~"
|
||||
|
||||
# Default remote directory to connect to
|
||||
remote_directory = "/"
|
||||
|
||||
# Enable file transfer progress notifications
|
||||
show_progress = true
|
||||
|
||||
# File transfer chunk size (in bytes)
|
||||
transfer_chunk_size = 8192
|
||||
|
||||
[logging]
|
||||
# Logging level: "OFF", "ERROR", "WARN", "INFO", "DEBUG", "TRACE"
|
||||
level = "INFO"
|
||||
|
||||
# Enable logging to file
|
||||
enabled = true
|
||||
|
||||
# Log file path (relative to config directory)
|
||||
file_path = "termscp.log"
|
||||
|
||||
# Maximum log file size in MB
|
||||
max_size = 10
|
||||
|
||||
[notifications]
|
||||
# Enable desktop notifications
|
||||
enabled = true
|
||||
|
||||
# Notify on successful transfer completion
|
||||
on_transfer_completed = true
|
||||
|
||||
# Notify on transfer failure
|
||||
on_transfer_failed = true
|
||||
|
||||
# Notify when updates are available
|
||||
on_update_available = true
|
||||
|
||||
# Minimum transfer size to trigger notifications (in bytes)
|
||||
minimum_transfer_size = 1048576 # 1MB
|
||||
|
||||
[security]
|
||||
# SSH key file path for SFTP/SCP connections
|
||||
ssh_key_path = "~/.ssh/id_rsa"
|
||||
|
||||
# Enable strict host key checking
|
||||
strict_host_key_checking = true
|
||||
|
||||
# Connection timeout in seconds
|
||||
connection_timeout = 30
|
||||
|
||||
# Enable compression for transfers
|
||||
compression = true
|
||||
|
||||
[display]
|
||||
# Show file sizes in human readable format
|
||||
human_readable_sizes = true
|
||||
|
||||
# Show file modification timestamps
|
||||
show_timestamps = true
|
||||
|
||||
# Show file permissions
|
||||
show_permissions = true
|
||||
|
||||
# Date format for timestamps
|
||||
# Options: "ISO", "US", "EUR", "CHN"
|
||||
date_format = "ISO"
|
||||
|
||||
# Time format for timestamps
|
||||
time_format = "24H"
|
||||
|
||||
[theme]
|
||||
# Color scheme
|
||||
color_scheme = "dark"
|
||||
|
||||
# Enable syntax highlighting for text files
|
||||
syntax_highlighting = true
|
||||
|
||||
# Show borders in file explorer
|
||||
show_borders = true
|
||||
|
||||
[performance]
|
||||
# Number of concurrent transfers
|
||||
max_concurrent_transfers = 4
|
||||
|
||||
# Enable file caching for better performance
|
||||
file_caching = true
|
||||
|
||||
# Cache size limit in MB
|
||||
cache_size_limit = 100
|
||||
|
||||
# Refresh interval for remote directory listings (in seconds)
|
||||
refresh_interval = 300
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue