LnL7 / nix-darwin

nix modules for darwin
MIT License
2.82k stars 431 forks source link

feat: add dock item property overrides #1078

Open aisamu opened 2 weeks ago

aisamu commented 2 weeks ago

feat: add dock item property overrides e8be494

This allows configuring things like "Sort by", "Display as" and "View content as" by mirroring the exact value observed on a defaults read.

The existing options and values weren't formalized in the schema as I have no expectations of stability across OS versions.

docs: don't use tildes on dock.persistent-others examples 73a5575

It no longer works on Sonoma 14.6.1, leaving a ? instead of the desired folder.

style: whitespace 31b0fb7

(nixpkgs-fmt)

Thanks for nix-darwin! ❤️

aisamu commented 2 weeks ago

My nix-fu is flimsy at best, please consider the code draft material!

Also: is there a way to programmatically refer to the user's home? (we could then autoexpand and/or use it as the base name for relative paths)