Skip to content

Conversation

Copy link

Copilot AI commented May 28, 2025

This PR introduces Nix and nix-darwin configuration to the dotfiles repository, allowing users to leverage Nix's reproducible package management alongside the existing Homebrew setup.

Added

  • Nix Configuration:

    • Basic flake.nix as the main entry point
    • nix/darwin-configuration.nix for system-wide settings
    • nix/home.nix for user-level configuration via home-manager
    • nix/example-host.nix template for host-specific configurations
  • Documentation:

    • Installation instructions for Nix and nix-darwin in README.md
    • Usage instructions and customization guidance
    • Explanation of benefits of using Nix
  • Shell Integration:

    • Updated Fish shell configuration to work with Nix

Benefits

  • Reproducible environments: Same packages across all machines
  • Declarative configuration: System defined as code
  • Atomic upgrades and rollbacks: Easy recovery if something breaks
  • Coexistence with Homebrew: Users can use both package managers

Usage

After installing Nix:

# Apply the configuration
darwin-rebuild switch --flake .#

Customize by editing the Nix files and updating your hostname in flake.nix.

Fixes #1.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: dfdgsdfg <474775+dfdgsdfg@users.noreply.github.com>
Copilot AI changed the title [WIP] nix, nix-darwin 도입 Add Nix and nix-darwin integration May 28, 2025
Copilot AI requested a review from dfdgsdfg May 28, 2025 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nix, nix-darwin 도입

2 participants