Skip to content

My local nix config

Notifications You must be signed in to change notification settings

wildsebastian/nix-config

Repository files navigation

My Nix(OS) configuration

On a new macOS system run the following to first install nix (the package manager) and nix-darwin.

Nix:

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

Nix Darwin:

nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
./result/bin/darwin-installer

This creates an example config in ~/.nixpkgs/darwin-configuration and bootstraps the system. Afterwards we can clone this repository and build the system using nix flakes. You can omit the path to flake if you are in the directory already.

darwin-rebuild switch --flake <path_to_flake>/.#

You can append the host of the machine in the flake if nix can not match it automatically.

darwin-rebuild switch --flake <path_to_flake>/.#<hostname>

Note

After emacs setup, run M-x all-the-icons-install-fonts.

About

My local nix config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published