26 current 2025-03-18 20:54:54 25.05.20250315.c80f6a7 6.12.19 *
This commit is contained in:
parent
34d6bfb809
commit
0704dabcd3
@ -6,6 +6,10 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
plugins = [
|
plugins = [
|
||||||
{name = "zsh-users/zsh-autosuggestions";}
|
{name = "zsh-users/zsh-autosuggestions";}
|
||||||
|
{
|
||||||
|
name = "sindresorhus/pure";
|
||||||
|
tags = [as:theme depth:1];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
|
|||||||
@ -3,9 +3,7 @@ set -e
|
|||||||
|
|
||||||
|
|
||||||
pushd ~/nixos/
|
pushd ~/nixos/
|
||||||
test=$(git diff --quiet '*.nix'):W
|
|
||||||
git add .
|
git add .
|
||||||
|
|
||||||
alejandra . &>/dev/null \
|
alejandra . &>/dev/null \
|
||||||
|| (alejandra . ; echo "formatting failed!" && exit 1)
|
|| (alejandra . ; echo "formatting failed!" && exit 1)
|
||||||
|
|
||||||
@ -16,11 +14,14 @@ echo "Rebuilding"
|
|||||||
sudo nixos-rebuild switch --upgrade --flake .
|
sudo nixos-rebuild switch --upgrade --flake .
|
||||||
|
|
||||||
current=$(nixos-rebuild list-generations | grep current)
|
current=$(nixos-rebuild list-generations | grep current)
|
||||||
|
git restore --staged .
|
||||||
|
|
||||||
if test; then
|
|
||||||
|
if git diff --quiet '*.nix'; then
|
||||||
popd
|
popd
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
git add .
|
||||||
|
|
||||||
git commit -am "$current"
|
git commit -am "$current"
|
||||||
git push
|
git push
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user