Gen 423: Updated shell script nix files to point to sound files in the root directory

This commit is contained in:
pagedMov
2024-10-12 17:29:04 -04:00
parent 07b2f5cab9
commit ed16562d58
28 changed files with 34 additions and 34 deletions

View File

@@ -1,18 +1,18 @@
{ pkgs }:
{ self, pkgs }:
{
nixswitch = pkgs.writeShellScriptBin "nixswitch" (''
#!/run/current-system/sw/bin/bash
scheck && runbg aplay ~/media/sound/sys/nixswitch-start.wav
scheck && runbg aplay ${self}/media/sound/nixswitch-start.wav
builtin cd "$HOME/sysflakes" || exit
nix flake update
sudo nixos-rebuild switch --flake "$HOME/sysflakes#glasshouse-laptop"
if [ $? -eq 0 ]; then
scheck && runbg aplay ~/media/sound/sys/update.wav
scheck && runbg aplay ${self}/media/sound/update.wav
else
scheck && runbg aplay ~/media/sound/sys/error.wav
scheck && runbg aplay ${self}/media/sound/error.wav
fi
builtin cd "$OLDPWD" || exit
'');