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.git}/bin/git diff -U0
|
||||
echo "NixOS Rebuilding..."
|
||||
sudo nixos-rebuild switch --flake . &>nixos-switch.log || (
|
||||
${pkgs.coreutils-full}/bin/cat nixos-switch.log | ${pkgs.gnugrep}/bin/grep --color error && false)
|
||||
sudo ${pkgs.unstable.nh}/bin/nh os switch ~/.nixos
|
||||
gen=$(nixos-rebuild list-generations | ${pkgs.gnugrep}/bin/grep current)
|
||||
${pkgs.git}/bin/git commit --no-gpg-sign -am "$gen"
|
||||
popd
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user