39 current 2024-04-18 10:16:08 23.11.20240405.72da83d 6.1.84 *
This commit is contained in:
parent
b6fd6c64e7
commit
7ad9d2edac
@ -11,8 +11,7 @@
|
|||||||
${pkgs.alejandra}/bin/alejandra . &>/dev/null
|
${pkgs.alejandra}/bin/alejandra . &>/dev/null
|
||||||
${pkgs.git}/bin/git diff -U0
|
${pkgs.git}/bin/git diff -U0
|
||||||
echo "NixOS Rebuilding..."
|
echo "NixOS Rebuilding..."
|
||||||
sudo nixos-rebuild switch --flake . &>nixos-switch.log || (
|
sudo ${pkgs.unstable.nh}/bin/nh os switch ~/.nixos
|
||||||
${pkgs.coreutils-full}/bin/cat nixos-switch.log | ${pkgs.gnugrep}/bin/grep --color error && false)
|
|
||||||
gen=$(nixos-rebuild list-generations | ${pkgs.gnugrep}/bin/grep current)
|
gen=$(nixos-rebuild list-generations | ${pkgs.gnugrep}/bin/grep current)
|
||||||
${pkgs.git}/bin/git commit --no-gpg-sign -am "$gen"
|
${pkgs.git}/bin/git commit --no-gpg-sign -am "$gen"
|
||||||
popd
|
popd
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user