mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Generic improvements to flake
This commit is contained in:
parent
4d32d11d1d
commit
c4619cbe4f
3 changed files with 23 additions and 17 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue