moved nixvim to home-manager config, re-added firefox plugins
This commit is contained in:
@@ -6,15 +6,14 @@
|
||||
pkgs.writeShellApplication {
|
||||
name = "rebuild";
|
||||
text = ''
|
||||
[ $# -eq 0 ] && echo "Usage: rebuild -h for home config, rebuild -s for sys config"
|
||||
hooray() { scheck && runbg aplay ${self}/assets/sound/update.wav; }
|
||||
damn() { scheck && runbg aplay ${self}/assets/sound/error.wav; }
|
||||
[ $# -eq 0 ] && echo -e "\033[1;4;38;2;243;139;168mUsage\033[0m: rebuild -h for home config, rebuild -s for sys config" && damn && exit 1
|
||||
scheck && runbg aplay ${self}/assets/sound/nixswitch-start.wav
|
||||
set -e
|
||||
hooray() { scheck && runbg aplay ${self}/assets/sound/update.wav }
|
||||
damn() { scheck && runbg aplay ${self}/assets/sound/error.wav }
|
||||
case $1 in
|
||||
"-h" ) if nh home switch -c ${host}Home "$FLAKEPATH"; then hooray; else damn; fi;;
|
||||
"-s" ) if nh os switch -H ${host} "$FLAKEPATH"; then hooray; else damn; fi;;
|
||||
* ) echo "Usage: rebuild -h for home config, rebuild -s for sys config";;
|
||||
* ) echo -e "\033[1;4;38;2;243;139;168mUsage\033[0m: rebuild -h for home config, rebuild -s for sys config";;
|
||||
esac
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user