22 current 2025-03-18 20:39:32 25.05.20250315.c80f6a7 6.12.19 *
This commit is contained in:
parent
647d4b2d9a
commit
34d6bfb809
@ -88,8 +88,8 @@
|
||||
];
|
||||
};
|
||||
|
||||
# Set default shell
|
||||
# users.defaultUserShell = pkgs.zsh;
|
||||
programs.zsh.enable = true;
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
|
||||
home-manager = {
|
||||
extraSpecialArgs = {inherit inputs;};
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user