A home-manager module for arranging Dock items.
Based off of https://gist.github.com/antifuchs/10138c4d838a63c0a05e725ccd7bccdd and elbelga's modifications (to support spacers, folders), modified to use home.activation because darwin-rebuild now runs as root.
Notes:
- I had to change
killall Dockto/usr/bin/killallDock otherwise nix would complain command not found. - The Downloads section mimics the layout that macOS does by default on my machine.
- Regarding the usage example, don't worry, I don't actually keep all of those spacers in my dock; it's just for demonstration purposes.