diff --git a/darwin.nix b/darwin.nix index b6ffe32c..2e69f5aa 100644 --- a/darwin.nix +++ b/darwin.nix @@ -1,6 +1,7 @@ { system, pkgs, pkgs-unsupported, nixpkgs-flake, ... }: let prismlauncher = pkgs-unsupported.prismlauncher.override { jdks = [ pkgs.jdk8 pkgs.jdk21 ]; }; + fileicon = import ./fileicon.nix { inherit pkgs; }; in { # TODO: nix options should be joint for darwin and nix-os @@ -133,12 +134,18 @@ in "/Applications/krita.app/" "${pkgs.inkscape}/Applications/Inkscape.app/" "/Users/xenia/Applications/Home Manager Apps/Alacritty.app" + "/Applications/" + "/Applications/Nix Apps/" ]; - # Set desktop background system.activationScripts.extraActivation.text = '' + echo "Setting background image..." osascript -e "tell application \"System Events\" to tell every desktop to set picture to \"${./backgrounds/enby-mac.png}\" as POSIX file" ''; + system.activationScripts.postActivation.text = '' + echo "Setting nix-apps folder icon..." + ${fileicon}/bin/fileicon set '/Applications/Nix Apps/' ${./nix-apps-folder.png} + ''; system.defaults.menuExtraClock = { ShowSeconds = true;