- Formatted everything using Alejandra

- Added 'ncli format' as a quick command to format everything
This commit is contained in:
2026-03-11 16:03:16 +01:00
parent 25ecab4a70
commit c6862c78db
36 changed files with 987 additions and 839 deletions

View File

@ -1,7 +1,7 @@
{
pkgs,
host,
backupFiles ? [ ".config/mimeapps.list.backup" ],
backupFiles ? [".config/mimeapps.list.backup"],
project,
...
}: let
@ -146,7 +146,7 @@ in
else
echo "No specialization tag found, staying on default system."
fi
genn=$(sudo nix-env --list-generations --profile /nix/var/nix/profiles/system | grep current | awk '{print $1}')
echo -e "Running on new generation: $YELLOW $geno $NOCOLOR-> $GREEN$genn$NOCOLOR"
@ -261,6 +261,9 @@ in
cd "$HOME/$PROJECT" || { echo "Error: Could not change to $HOME/$PROJECT"; exit 1; }
git status
;;
format)
nix fmt .
;;
trim)
echo "Running 'sudo fstrim -v /' may take a few minutes and impact system performance."
read -p "Enter to run now or enter to exit (y/N): " -n 1 -r