Skip to content

❄️ Personal Nix config files for my development machines & VMs

Notifications You must be signed in to change notification settings

shzhng/nix-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix/MacOS System Configurations

NixOS 24.05 NixOS 24.05

This repository contains my own personal MacOS (using nix-darwin) and home-manager system configurations. I use this to provision my MacOS instance, as well as provision the same environment on Linux systems (currently non-NixOS) using standalone home-manager.

Important

This is a work in progress and may not work as expected. It isn't intended to be used by other people in their own setup, but feel free to reference it as you get into using nix.

MacOS

Setup

  1. Install nix (if not on NixOS) I prefer to use the Determinate Systems installer.
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

2.a Initialize the MacOS system, with home-manager as a module

nix run nix-darwin -- switch --flake .

2.b. Initialize home-manager on a Linux system

nix run home-manager -- switch --flake .

3.a. Reload the full system on MacOS

darwin-rebuild switch --flake .

3.b. Reload home-manager on a Linux system

home-manager switch --flake .

About

❄️ Personal Nix config files for my development machines & VMs

Topics

Resources

Stars

Watchers

Forks