Add new fish scripts

This commit is contained in:
albert 2024-12-07 05:33:16 +01:00
parent 09693f165b
commit a4ec4f08df
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -66,10 +66,6 @@
echo -en ", Milan"
ssh -qA milan-linode-01 "sudo systemctl restart podman-derp"
echo -e "... Done"
echo -en "Restarting rdesktop containers.... "
ssh -qA warsaw-ovh-01 "sudo systemctl restart container@rdesktop"
ssh -qA framework-server "sudo systemctl restart container@rdesktop"
echo -e "... Done"
deploy -s
popd
'';
@ -127,6 +123,16 @@
echo "Collecting garbage..."
sudo nix-collect-garbage -d
'';
# BTRFS Related
clean-boot-snapshots = ''
echo -e "Deleting boot snapshots...."
for i in $(sudo snapper -c root list | grep boot | awk {'print $1'});
echo -e " $i,"
sudo snapper -c root delete $i;
end
echo -e " done."
'';
};
shellAliases = {