Use fileicon to change nix apps folder icon
This commit is contained in:
parent
a7fdb34dc9
commit
3453bc27e4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user