From 38948e0462497bce6de0fd0d223527c1523ebae0 Mon Sep 17 00:00:00 2001 From: oqyude Date: Wed, 5 Aug 2026 11:47:23 +0300 Subject: [PATCH] small changes --- modules/essentials/shell.nix | 13 +++++++++---- modules/software/aichat.nix | 12 ------------ modules/wsl/default.nix | 1 - 3 files changed, 9 insertions(+), 17 deletions(-) delete mode 100644 modules/software/aichat.nix diff --git a/modules/essentials/shell.nix b/modules/essentials/shell.nix index 372ff15..56ec25b 100644 --- a/modules/essentials/shell.nix +++ b/modules/essentials/shell.nix @@ -19,15 +19,18 @@ theme = "robbyrussell"; }; shellInit = '' - beet-n() { - echo "$*" | aichat -cer beets - } beet-p() { - beet mod path:. playlist="$*" + local base="/home/oqyude/.config/beets/My" + local rel + rel=$(realpath --relative-to="$base" "$PWD") + beet mod "path:$rel" playlist="$*" } beet-ims() { beet im ./ -S $* } + beet-path() { + realpath --relative-to="/home/oqyude/.config/beets/My" "$1" + } ''; shellAliases = { # shell @@ -42,7 +45,9 @@ gc = "git add . && git commit -m 'dev: автокоммит $(date +'%Y-%m-%d %H:%M:%S')'"; y = "yazi"; nix-shellp = "nix-shell --run $SHELL -p"; + beet-path-library = "realpath --relative-to='/home/oqyude/.config/beets/My' ."; z-proxy = "export ALL_PROXY=socks5://localhost:10808"; + zh-proxy = "export HTTPS_PROXY=http://localhost:10808 && export HTTP_PROXY=http://localhost:10808"; # beets beet-ima = "beet im ./ -A"; diff --git a/modules/software/aichat.nix b/modules/software/aichat.nix deleted file mode 100644 index 0e3f5e3..0000000 --- a/modules/software/aichat.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ - config, - lib, - pkgs, - xlib, - ... -}: -{ - environment.systemPackages = [ - pkgs.aichat - ]; -} diff --git a/modules/wsl/default.nix b/modules/wsl/default.nix index 988e029..acfb68a 100644 --- a/modules/wsl/default.nix +++ b/modules/wsl/default.nix @@ -6,7 +6,6 @@ }: { imports = [ - ../software/aichat.nix ../software/beets ../software/whisper.nix ./containers