Skip to content

Instantly share code, notes, and snippets.

View lunarythia's full-sized avatar
💭
existing!! :3

AmberWing lunarythia

💭
existing!! :3
  • 21:48 (UTC -07:00)
View GitHub Profile
@lunarythia
lunarythia / README-nix-darwin-home-manager-dock.md
Last active May 26, 2026 17:07
A home-manager module for arranging Dock items.

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 Dock to /usr/bin/killall Dock 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.
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")))
(require 'package)
(package-initialize)
(setq use-package-always-ensure t)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(use-package company
:after lsp-mode