chore: format nix files treewide

This commit is contained in:
Mohammad Rafiq 2025-05-20 12:53:13 +08:00
parent e1652efa53
commit 90d10606bc
No known key found for this signature in database
30 changed files with 387 additions and 319 deletions

View file

@ -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
''