Skip to content

melvinlee/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles Configuration

Nix Version Darwin Version License

Introduction

This repository contains my personal dotfiles and system configuration for macOS using Nix and Nix-Darwin.

Features

  • System-wide package management with Nix
  • Declarative system configuration with Nix-Darwin
  • Home directory configuration with Home Manager
  • Git configuration management
  • Shell environment setup

Prerequisites

System Requirements

  • macOS 10.15 (Catalina) or later
  • Administrative privileges
  • Xcode Command Line Tools installed

Required Tools

Installation Steps

Install dotfiles with stow:

stow .

Install Nix Package Manager

sh <(curl -L https://nixos.org/nix/install)

Install Nix-Darwin

cd /nix-darwin

# Initialize flake
nix flake init -t nix-darwin

# Build initial configuration
nix build .#mini

# Create first generation
darwin-rebuild switch --flake .#mini

Configuration

The configuration is organized into the following directories:

  • git/: Git configuration files
  • nix/: Nix package manager configuration
  • nix-darwin/: System configuration using Nix-Darwin

Troubleshooting

Common issues and solutions:

  1. Permission errors: Run commands with sudo when necessary
  2. Broken packages: Try running nix-collect-garbage -d to clean up old packages

References

Official Documentation

Community Resources

Tutorials & Guides

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages