Started working on rebuild script

This commit is contained in:
2025-05-28 22:06:29 -04:00
parent 5e03459f6e
commit 44ba0a6d5c
3 changed files with 14 additions and 0 deletions

View File

@@ -269,4 +269,6 @@ in
mpd.useLocal = true;
};
services.systembus-notify.enable = true;
}

11
home/scripts/nixswitch.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
cd ~/nixos-config
sudo nixos-rebuild switch --flake . &>nixos-switch.log || (cat nixos-switch.log | grep --color error && exit 1)
current=$(nixos-rebuild list-generations | grep current)
git commit -am "$current"
notify-send -e "NixOS Rebuilt OK!" --icon=software-update-available