refactor: 简化仓库路径,移除硬编码的 rebuild/update 命令和安装脚本

This commit is contained in:
2026-04-11 17:52:03 +08:00
parent 8965f6fc15
commit aa1b2ff23c
4 changed files with 5 additions and 43 deletions
-10
View File
@@ -24,8 +24,6 @@
# Network
http = "xh";
# Nix
update = "nix flake update --flake ~/Developer/nix-config";
};
interactiveShellInit = ''
@@ -41,14 +39,6 @@
# Sudo: double Escape to prepend sudo
bind \e\e 'fish_commandline_prepend sudo'
# Platform-specific rebuild command (derive flake attr from hostname)
if test (uname) = Darwin
set -l attr (scutil --get LocalHostName | string lower | string replace 'awesome-' "")
abbr --add rebuild "sudo darwin-rebuild switch --flake ~/Developer/nix-config#$attr"
else
abbr --add rebuild "sudo nixos-rebuild switch --flake ~/Developer/nix-config#wsl"
end
# WSL clipboard
if set -q WSL_DISTRO_NAME
alias pbcopy clip.exe