🎨 add pre-commit-hooks and cleanup

This commit is contained in:
2023-07-26 13:04:43 -04:00
parent 63b05b74b4
commit 35cf87eb2e
12 changed files with 163 additions and 29 deletions

View File

@ -68,16 +68,14 @@
};
};
system.activationScripts.applications.text = pkgs.lib.mkForce (
''
rm -rf /Applications/Nix
mkdir -p /Applications/Nix
for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do
src="$(/usr/bin/stat -f%Y "$app")"
cp -r "$src" /Applications/Nix
done
''
);
system.activationScripts.applications.text = pkgs.lib.mkForce ''
rm -rf /Applications/Nix
mkdir -p /Applications/Nix
for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do
src="$(/usr/bin/stat -f%Y "$app")"
cp -r "$src" /Applications/Nix
done
'';
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
_:
{
homebrew = {