Skip to content

ubugeeei/origin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ubugeeei/origin

Warning

This repository performs privileged and destructive operations. Running it can install software from remote sources, execute sudo darwin-rebuild switch --impure, change macOS defaults, change the login shell, rewrite /Applications and /Library/Input Methods, and remove files with rm -rf. Review the code before running anything on a machine you care about.

Caution

Use this repository entirely at your own risk. I take no responsibility for data loss, broken machines, account issues, or any other damage caused by using it.

Personal macOS workstation configuration built with Nix, nix-darwin, and Home Manager. It is intentionally opinionated and optimized for one machine owner, not for safe one-click onboarding by strangers.

What This Repo Does

  • manages macOS system settings through nix-darwin
  • manages the user environment through Home Manager
  • installs CLI tools, editors, and selected GUI apps
  • exposes selected Nix-managed apps into /Applications
  • keeps machine-specific values in machine/local.env, which is intentionally gitignored

Quick Start

  1. Read docs/onboarding.md.

  2. Generate the local machine override file:

    ./scripts/init-machine-config.sh
  3. Review machine/local.env.

  4. Bootstrap a fresh Mac:

    ./scripts/bootstrap-macos.sh
  5. Re-apply changes on an already bootstrapped machine:

    ./scripts/apply.sh
  6. Run a quick health check:

    ./scripts/doctor.sh

Safety Boundaries

  • machine/local.env is local-only data. Do not commit it.
  • machine/local.env accepts only plain single-quoted ORIGIN_*='...' assignments. Shell expressions are rejected.
  • bootstrap and apply evaluate path:$PWD#workstation, so local uncommitted changes affect what gets applied.
  • Activation scripts replace managed app bundles under /Applications and /Library/Input Methods.
  • Some cleanup helpers intentionally remove files, including app bundles that are considered unmanaged or unwanted on the target machine.

Repository Layout

Further Reading

About

ubugeeei/origin (bootstrap for setup)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors