Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flakes section reference in Installation section #810

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ nix-darwin is built up around [Nixpkgs](https://github.com/NixOS/nixpkgs), quite

To install nix-darwin, a working installation of [Nix](https://github.com/NixOS/nix#installation) is required.

> NOTE: Using `darwin-installer` is no longer necessary on flake based systems.
If you wish to use nix-darwin with flakes, please refer to the [flakes](#flakes) section.

```bash
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
Expand Down Expand Up @@ -69,10 +69,9 @@ Configuration lives in `~/.nixpkgs/darwin-configuration.nix`. Check out
}
```

## Flakes (experimental)
## Flakes

There is also preliminary support for building your configuration using a [flake](https://nixos.wiki/wiki/Flakes). This
is mostly based on the flake support that was added to NixOS.
nix-darwin aims for both non-flake and flake configurations to be well supported despite flakes being an experimental feature in Nix.

### Step 1. Creating `flake.nix`

Expand Down Expand Up @@ -105,7 +104,7 @@ Add the following to `flake.nix` in the same folder as `configuration.nix`:

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-23.05-darwin";
nix-darwin.url = "github:LnL7/nix-darwin/master";
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
};

Expand Down