mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
Replace hostname with LocalHostName
This commit is contained in:
parent
22419fddf7
commit
6cd2f4cea2
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ cd ~/.config/nix-darwin
|
|||
nix flake init -t nix-darwin
|
||||
```
|
||||
|
||||
Make sure to replace all occurrences of `simple` with your short hostname which you can find by running `hostname -s`.
|
||||
Make sure to replace all occurrences of `simple` with your hostname which you can find by running `scutil --get LocalHostName`.
|
||||
|
||||
> NOTE: Make sure to change `nixpkgs.hostPlatform` to `aarch64-darwin` if you are using Apple Silicon.
|
||||
|
||||
|
@ -118,7 +118,7 @@ Add the following to `flake.nix` in the same folder as `configuration.nix`:
|
|||
}
|
||||
```
|
||||
|
||||
Make sure to replace `Johns-MacBook` with your short hostname which you can find by running `hostname -s`.
|
||||
Make sure to replace `Johns-MacBook` with your hostname which you can find by running `scutil --get LocalHostName`.
|
||||
|
||||
> NOTE: Make sure to set `nixpkgs.hostPlatform` in your `configuration.nix` to either `x86_64-darwin` (Intel) or `aarch64-darwin` (Apple Silicon).
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue