1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-04-09 02:30:29 +00:00

Update README.md

This commit is contained in:
Jakub Svec 2024-04-02 09:27:55 -07:00 committed by GitHub
parent 2e9c7a5f3d
commit 0c5467cf5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,7 +108,7 @@ Add the following to `flake.nix` in the same folder as `configuration.nix`:
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs@{ self, nix-darwin, nixpkgs }: {
outputs = inputs@{ self, nix-darwin, nixpkgs }: {
darwinConfigurations."Johns-MacBook" = nix-darwin.lib.darwinSystem {
modules = [ ./configuration.nix ];
};
@ -132,13 +132,14 @@ nix run nix-darwin -- switch --flake ~/.config/nix-darwin
### Step 3. Using `nix-darwin`
After installing, you can run `darwin-rebuild` to apply changes to your system:
After installing, restarting your computer should make `darwin-rebuild` available in your `PATH` to apply changes to your system:
```bash
darwin-rebuild switch --flake ~/.config/nix-darwin
```
NOTE: if the 'darwin-rebuild' command is not found, you will need to add a path to your ~/.bashrc or ~/.zshrc file. In the file, add: `export PATH=/run/current-system/sw/bin:$PATH`
> NOTE: if the 'darwin-rebuild' command is not found after installation, you will need to add a path to your shell configuration (f.e. the ~/.bashrc or ~/.zshrc file).
> To to so, add: `export PATH=/run/current-system/sw/bin:$PATH` in your shell configuration file.
#### Using flake inputs