Generic improvements to flake

This commit is contained in:
Emmet 2023-06-20 17:31:49 -05:00
parent 4d32d11d1d
commit c4619cbe4f
3 changed files with 23 additions and 17 deletions

View file

@ -13,19 +13,22 @@ let
pushd ''+myDotfilesDir+'';
home-manager switch --flake .#''+myName+'';
popd;
killall xmobar;
xmonad --recompile && xmonad --restart;
emacsclient --no-wait --eval "(load-theme 'doom-stylix t nil)";
pushd ~/.emacs.d/eaf/app/browser;
rm package*.json;
npm install darkreader @mozilla/readability && rm package*.json;
popd;
~/.fehbg-stylix;
which xmobar &> /dev/null && killall xmobar;
which xmonad &> /dev/null && xmonad --recompile && xmonad --restart;
which emacsclient &> /dev/null && emacsclient --no-wait --eval "(load-theme 'doom-stylix t nil)";
[ -f ~/.fehbg-stylix ] &> /dev/null && ~/.fehbg-stylix;
fi
elif [ "$1" = "update" ]; then
pushd ''+myDotfilesDir+'';
nix flake update;
popd;
if [ -d ~/.emacs.d/eaf/app/browser ]
then
pushd ~/.emacs.d/eaf/app/browser;
rm package*.json;
npm install darkreader @mozilla/readability && rm package*.json;
popd;
fi
elif [ "$1" = "gc" ]; then
if [ "$2" = "full" ]; then
sudo nix-collect-garbage --delete-old;