Skip to content

ArcoNightshade/macOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lyon's MacOS Nix flake

Declarative macOS configuration via Nix Darwin + Home Manager.


Structure

.macOS/
├── flake.nix                   # Inputs, outputs, profiles
├── compose.nix                 # Shared config across all profiles
├── profile/
│   └── m3-macbook-air/         # Primary machine (aarch64-darwin)
│       ├── configuration.nix
│       └── hardware.nix
└── modules/
    ├── apps/
    │   ├── ghostty.nix         # Terminal emulator
    │   ├── nvim.nix            # Neovim (LazyVim)
    │   ├── zed.nix             # Zed editor
    │   └── software.nix        # Homebrew casks
    ├── commands/
    │   ├── btop.nix            # System monitor
    │   ├── fastfetch.nix       # System info
    │   ├── gh.nix              # GitHub CLI
    │   ├── shell.nix           # Aliases
    │   └── software.nix        # Nix CLI tools
    └── desktop/
        ├── aerospace.nix       # Tiling window manager
        ├── sketchybar.nix      # Status bar
        └── macos.nix           # System defaults

Applying

sudo darwin-rebuild switch --flake /Users/lyon/.lyon#workstation

Desktop

Component Tool
Window Manager Aerospace
Status Bar Sketchybar
Terminal Ghostty
Shell Nushell
Editor Zed
Launcher Raycast

Aerospace Keybindings

Key Action
alt-h/j/k/l Focus window
alt-shift-h/j/k/l Move window
alt-1/2/3/4 Switch workspace
alt-shift-1/2/3/4 Move window to workspace
alt-/ Toggle tile layout
alt-, Toggle accordion layout
alt-tab Workspace back and forth
cmd-enter New Ghostty terminal
alt-o/b/s/f/e/z App shortcuts

Installation

Prerequisites: Lix and nix-darwin.

git clone https://github.com/ArcoNightshade/macOS
cd macOS
sudo darwin-rebuild switch --flake .#workstation

Existing config files are backed up with a .bak extension on first switch.

About

My personal nix darwin flake.

Resources

Stars

Watchers

Forks

Contributors

Languages