Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.4 KB

README.md

File metadata and controls

51 lines (32 loc) · 1.4 KB

Nix Configuration

Setup

MacOS

Nix Darwin Github Repo

  1. Install Nix

Find instructions here. As of writing this, the command is:

curl -L https://nixos.org/nix/install | sh
  1. Install Nix Darwin

Find instructions here. As of writing this, the command is:

nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake ~/path/to/flake.nix#<profile>

The path to the flake.nix file depends on where you have it stored on your machine. The profile is the name of the profile defined in the flake.nix file. For example, if this is profile you want to use with the flake:

darwinConfigurations."macbook-air" = nix-darwin.lib.darwinSystem {
  modules = [ configuration ];
};

Then the profile is macbook-air.

  1. Using Nix Darwin

Find instructions here. As of writing this, the command to apply the configuration is:

darwin-rebuild switch --flake ~/path/to/flake/directory#<profile>

Search

To search for packages from nixpkgs, use the following command:

nix search nixpkgs <package-name>

You can also use the web interface here.