From a4ec4f08df470356a558c28644da38c7e35751e1 Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 7 Dec 2024 05:33:16 +0100 Subject: [PATCH] Add new fish scripts --- home-manager/common/software/cli/fish.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/home-manager/common/software/cli/fish.nix b/home-manager/common/software/cli/fish.nix index ae650626..a93366b5 100644 --- a/home-manager/common/software/cli/fish.nix +++ b/home-manager/common/software/cli/fish.nix @@ -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 = {