22 current 2025-03-18 20:39:32 25.05.20250315.c80f6a7 6.12.19 *

This commit is contained in:
Gustav Bruhn 2025-03-18 20:39:34 +01:00
parent 647d4b2d9a
commit 34d6bfb809
2 changed files with 7 additions and 5 deletions

View File

@ -88,8 +88,8 @@
];
};
# Set default shell
# users.defaultUserShell = pkgs.zsh;
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
home-manager = {
extraSpecialArgs = {inherit inputs;};

View File

@ -3,21 +3,23 @@ set -e
pushd ~/nixos/
test=$(git diff --quiet '*.nix'):W
git add .
alejandra . &>/dev/null \
|| (alejandra . ; echo "formatting failed!" && exit 1)
git add .
echo "Rebuilding"
sudo nixos-rebuild switch --upgrade --flake .
current=$(nixos-rebuild list-generations | grep current)
if git diff --quiet '*.nix'; then
if test; then
popd
notify-send -e "Nixos updated with no config changes" --icon=software-update-avaiable
exit 0
fi
git commit -am "$current"