- Formatted everything using Alejandra
- Added 'ncli format' as a quick command to format everything
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user