move some scripts to .nix

This commit is contained in:
2026-02-25 09:28:40 +01:00
parent 09e31ebfd8
commit 141ebd6150
7 changed files with 39 additions and 154 deletions

View File

@@ -45,9 +45,7 @@
set -l rel_file (realpath --relative-to=$config_dir $file)
if nh home switch $config_dir -c ${
if isNixOS then "nixos" else "arch"
}" -b backup
if nh home switch $config_dir -c ${if isNixOS then "nixos" else "arch"}
git add -A
set commit_msg "update: $rel_file"
git commit -m "$commit_msg"
@@ -61,6 +59,11 @@
'';
};
reload_dotfiles = {
body = # fish
"nh home switch ~/.config/home-manager -c ${if isNixOS then "nixos" else "arch"}";
};
ls = {
body = # fish
"eza --long --icons --group-directories-first --git $argv";