Initial commit

This commit is contained in:
Artyom Belousov 2026-01-13 15:34:28 +03:00 committed by Артём Белоусов
commit b79d352847
37 changed files with 2191 additions and 0 deletions

116
home/cli/default.nix Normal file
View file

@ -0,0 +1,116 @@
{
config,
lib,
pkgs,
...
}:
{
options = {
custom.cli.enable = lib.mkEnableOption "Enable CLI config";
};
config = lib.mkIf config.custom.cli.enable {
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks."*" = {
setEnv = {
TERM = "xterm-256color";
};
};
};
home.packages = with pkgs; [
bottom
clang
deploy-rs
devbox
dig
dust
fastfetch
imagemagick
nh
termusic
];
home = {
shell.enableFishIntegration = true;
};
xdg.configFile = {
termusicServerConfig = {
source = ./termusic/server.toml;
target = "termusic/server.toml";
};
termusicTuiConfig = {
source = ./termusic/tui.toml;
target = "termusic/tui.toml";
};
};
programs = {
opencode = {
enable = true;
settings = {
provider = {
ai-tunnel = {
options = {
baseURL = "https://api.aitunnel.ru/v1/";
};
models = {
"glm-5" = {
name = "glm-5";
};
"glm-4.7-flash" = {
name = "glm-4.7-flash";
};
};
};
};
};
};
bat.enable = true;
eza.enable = true;
fd = {
enable = true;
hidden = true;
extraOptions = [
"--hidden"
"-g"
"!*.git/"
];
};
yazi = {
enable = true;
shellWrapperName = "y";
};
ripgrep = {
enable = true;
arguments = [
"--hidden"
"-g"
"!*.git/"
];
};
lazygit.enable = true;
direnv.enable = true;
home-manager.enable = true;
delta = {
enable = true;
enableGitIntegration = true;
};
fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting
'';
};
zoxide.enable = true;
starship.enable = true;
git = {
enable = true;
settings = {
user = {
email = "flygrounder@flygrounder.ru";
name = "Артём Белоусов";
};
};
};
};
};
}

View file

@ -0,0 +1,45 @@
version = "2"
[com]
protocol = "uds"
socket_path = "/tmp/termusic.socket"
port = 50101
address = "::1"
[player]
music_dirs = ["/home/flygrounder/Музыка"]
loop_mode = "playlist"
volume = 30
speed = 10
gapless = true
use_mediacontrols = true
set_discord_status = false
random_track_quantity = 20
random_album_min_quantity = 5
backend = "rusty"
[player.remember_position]
music = "no"
podcast = "yes"
[player.seek_step]
short_tracks = 5
long_tracks = 30
[podcast]
concurrent_downloads_max = 3
max_download_retries = 3
download_dir = "/home/flygrounder/Музыка"
[backends.rusty]
soundtouch = true
file_buffer_size = "4.0 MiB"
decoded_buffer_size = "750.0 KiB"
output_sample_rate = 48000
[backends.mpv]
audio_device = "auto"
[metadata]
directory_scan_depth = 10
artist_separators = [",", ";", "&", "ft.", "feat.", "/", "|", "×", "、", " x "]

173
home/cli/termusic/tui.toml Normal file
View file

@ -0,0 +1,173 @@
version = "2"
com = "same"
[behavior]
quit_server_on_exit = false
confirm_quit = false
[coverart]
align = "bottom right"
size_scale = 0
hidden = false
protocols = ["kitty", "sixel", "ueberzug", "iterm2"]
[style.library]
foreground_color = "Foreground"
background_color = "Reset"
border_color = "Blue"
highlight_color = "LightYellow"
highlight_symbol = "🦄"
[style.playlist]
foreground_color = "Foreground"
background_color = "Reset"
border_color = "Blue"
highlight_color = "LightYellow"
highlight_symbol = "🚀"
current_track_symbol = "►"
use_loop_mode_symbol = true
[style.lyric]
foreground_color = "Foreground"
background_color = "Reset"
border_color = "Blue"
[style.progress]
foreground_color = "LightBlack"
background_color = "Reset"
border_color = "Blue"
[style.important_popup]
foreground_color = "Yellow"
background_color = "Reset"
border_color = "Yellow"
[style.fallback]
foreground_color = "Foreground"
background_color = "Reset"
border_color = "Blue"
highlight_color = "LightYellow"
[theme]
name = "empty name"
author = "empty author"
[theme.primary]
background = "#101421"
foreground = "#fffbf6"
[theme.cursor]
text = "#1e1e1e"
cursor = "#ffffff"
[theme.normal]
black = "#2e2e2e"
red = "#eb4129"
green = "#abe047"
yellow = "#f6c744"
blue = "#47a0f3"
magenta = "#7b5cb0"
cyan = "#64dbed"
white = "#e5e9f0"
[theme.bright]
black = "#565656"
red = "#ec5357"
green = "#c0e17d"
yellow = "#f9da6a"
blue = "#49a4f8"
magenta = "#a47de9"
cyan = "#99faf2"
white = "#ffffff"
[keys]
escape = "escape"
quit = "q"
[keys.view]
view_library = "1"
view_database = "2"
view_podcasts = "3"
open_config = "shift+C"
open_help = "control+h"
[keys.navigation]
up = "k"
down = "j"
left = "h"
right = "l"
goto_top = "g"
goto_bottom = "shift+G"
[keys.global_player]
toggle_pause = "space"
next_track = "n"
previous_track = "shift+N"
volume_up = "+"
volume_down = "-"
seek_forward = "f"
seek_backward = "b"
speed_up = "control+f"
speed_down = "control+b"
toggle_prefetch = "control+g"
save_playlist = "control+s"
[keys.global_lyric]
adjust_offset_forwards = "shift+F"
adjust_offset_backwards = "shift+B"
cycle_frames = "shift+T"
[keys.library]
load_track = "l"
load_dir = "shift+L"
delete = "d"
yank = "y"
paste = "p"
cycle_root = "o"
add_root = "a"
remove_root = "shift+A"
search = "/"
youtube_search = "s"
open_tag_editor = "t"
[keys.playlist]
delete = "d"
delete_all = "shift+D"
shuffle = "r"
cycle_loop_mode = "m"
play_selected = "l"
search = "/"
swap_up = "shift+K"
swap_down = "shift+J"
add_random_songs = "s"
add_random_album = "shift+S"
[keys.database]
add_selected = "l"
add_all = "shift+L"
[keys.podcast]
search = "s"
mark_played = "m"
mark_all_played = "shift+M"
refresh_feed = "r"
refresh_all_feeds = "shift+R"
download_episode = "d"
delete_local_episode = "shift+D"
delete_feed = "x"
delete_all_feeds = "shift+X"
[keys.adjust_cover_art]
move_left = "control+shift+arrowleft"
move_right = "control+shift+arrowright"
move_up = "control+shift+arrowup"
move_down = "control+shift+arrowdown"
increase_size = "control+shift+pageup"
decrease_size = "control+shift+pagedown"
toggle_hide = "control+shift+end"
[keys.config]
save = "control+s"
[ytdlp]
extra_args = ""