Add new fish scripts
This commit is contained in:
parent
09693f165b
commit
a4ec4f08df
1 changed files with 11 additions and 5 deletions
|
@ -54,7 +54,7 @@
|
|||
git pull
|
||||
docker compose up -d $argv
|
||||
popd
|
||||
'';
|
||||
'';
|
||||
# Deploy-RS script
|
||||
deploy-rs = ''
|
||||
pushd /etc/nixos/git/
|
||||
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue