From b658dbd85a1c70a15759b470d7b88c0c95f497be Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Fri, 22 Sep 2023 16:17:42 +0100 Subject: [PATCH] Update README --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b29d8a7..fb3cf6f 100644 --- a/README.md +++ b/README.md @@ -86,11 +86,10 @@ If you don't have an existing `configuration.nix`, you can run the following com mkdir -p ~/.config/nix-darwin cd ~/.config/nix-darwin nix flake init -t nix-darwin +sed -i '' "s/simple/$(scutil --get LocalHostName)/" flake.nix ``` -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. +Make sure to change `nixpkgs.hostPlatform` to `aarch64-darwin` if you are using Apple Silicon. @@ -120,7 +119,7 @@ Add the following to `flake.nix` in the same folder as `configuration.nix`: 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). +Make sure to set `nixpkgs.hostPlatform` in your `configuration.nix` to either `x86_64-darwin` (Intel) or `aarch64-darwin` (Apple Silicon).