chore: format nix files treewide
This commit is contained in:
parent
e1652efa53
commit
90d10606bc
30 changed files with 387 additions and 319 deletions
|
@ -1,16 +1,16 @@
|
|||
{ lib, pkgs, ... }:
|
||||
pkgs.writeShellScriptBin "rebuild" # sh
|
||||
''
|
||||
if [ ! -f "flake.nix" ]; then
|
||||
echo "flake.nix not found in current directory. exiting..."
|
||||
exit 1
|
||||
fi
|
||||
''
|
||||
if [ ! -f "flake.nix" ]; then
|
||||
echo "flake.nix not found in current directory. exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git add . && \
|
||||
nixos-rebuild switch --flake . --use-remote-sudo && \
|
||||
echo "=== opening test shell. ===" && \
|
||||
echo "=== exit = commit ===" && \
|
||||
echo "=== exit 1 = abort ===" && \
|
||||
$SHELL && \
|
||||
git commit -a
|
||||
''
|
||||
git add . && \
|
||||
nixos-rebuild switch --flake . --use-remote-sudo && \
|
||||
echo "=== opening test shell. ===" && \
|
||||
echo "=== exit = commit ===" && \
|
||||
echo "=== exit 1 = abort ===" && \
|
||||
$SHELL && \
|
||||
git commit -a
|
||||
''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue