nixos-edit: dont use sudo for helix

This commit is contained in:
Daniella / Tove 2024-11-15 21:22:41 +01:00
parent b399f8c134
commit 6502b3a36e
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -95,7 +95,7 @@ pkgs.writeShellScriptBin "nixos-edit" ''
git pull --rebase
fi
if [ "$1" = "edit" ] || [ "$1" = "" ] || [ "$1" = "test" ] ; then
sudo hx .
hx .
fi
if [ "$1" = "add" ] ; then
sed -i -E "s/#marker.pkgs.end#/$2\n #marker.pkgs.end#/" home.nix