Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.43 KB

File metadata and controls

48 lines (31 loc) · 1.43 KB

Dotfiles (powered by Nix)

These are my personal, Nix-based dotfiles configured using Nix flakes.

Overview

This repository provides a structured and reproducible system configuration for Darwin machines using nix-darwin and home-manager.

Installation

  1. Install Nix with flakes enabled:

[!WARING] Determinate Nix Installer has the options to install official (planner) Nix, as well as Determinate's own variants (Determinate Nix). Make sure to install the official Nix, otherwise the configurations raise errors coming from the incompatible options.

  1. Clone this repo:

    $ git clone https://github.com/hydeik/dotfiles <path-to-dotfiles> 
    $ cd <path-to-dotfiles>
  2. Run Nix flake:

    $ nix flake lock
    # Setup darwin system
    $ nix run flake nix-darwin/nix-darwin/master#darwin-rebuild -- switch --flake .#<hostname> 

Update system configurations and packages

$ nix run .#write-flake
$ nix flake update
# update darwin system
$ darwin-rebuild switch --flake .#<hostname>

License

This project is licensed under the MIT License. See the LICENSE file for details.