| ... | ... | @@ -8,7 +8,7 @@ modules/ # reusable modules |
| 8 | 8 | +-- macos/ # nix-darwin configurations |
| 9 | 9 | +-- nixos/ # linux configurations |
| 10 | 10 | +-- nixvim/ # neovim configurations |
| 11 | | +-- shared/ # shared between nixos-rebuild & nixos-rebuild |
| 11 | +-- shared/ # shared between nixos-rebuild & darwin-rebuild |
| 12 | 12 | +-- home-manager.nix # home program presets |
| 13 | 13 | users/ |
| 14 | 14 | +-- chloe/ |
| ... | ... | @@ -36,30 +36,30 @@ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix |
| 36 | 36 | sh -s -- install |
| 37 | 37 | ``` |
| 38 | 38 | |
| 39 | | Open a new shell and clone the repository: |
| 39 | While this installs, now is a good time to perform manual setup steps: |
| 40 | 40 | |
| 41 | | ``` |
| 42 | | # Install git + other command tools. (Used by many programs) |
| 43 | | xcode-select --install |
| 41 | - Setup your SSH keys in `~/.ssh` |
| 42 | - Configure the device hostname in System Settings in |
| 43 | - About -> Name |
| 44 | - General -> Sharing -> Local Hostname |
| 45 | - Make sure you're logged into iCloud / Mac App Store |
| 46 | - `xcode-select --install` to make sure Git and other utilities are available. |
| 47 | - Optional: Disable app verification with `sudo spctl --master-disable`, then, go to System Settings -> Privacy to allow unsigned apps. |
| 48 | |
| 49 | Once Nix is installed, open a new shell and clone the repository: |
| 44 | 50 | |
| 51 | ``` |
| 45 | 52 | # Clone via HTTPs |
| 46 | 53 | git clone https://git.paperclover.net/clo/config.git |
| 47 | 54 | # With SSH Authentication |
| 48 | 55 | git clone git@git.paperclover.net:clo/config |
| 49 | 56 | ``` |
| 50 | 57 | |
| 51 | | Setup `nix-darwin` |
| 52 | | ``` |
| 53 | | # Tell nix-darwin where the flake is at. |
| 54 | | sudo mkdir /etc/nix-darwin |
| 55 | | sudo ln -s $(realpath flake.nix) /etc/nix-darwin/ |
| 58 | The location of the cloned repository must match what is in your `user.nix` file. |
| 56 | 59 | |
| 57 | | # Enable configuration. |
| 58 | | nix run .#darwin-rebuild switch |
| 59 | | ``` |
| 60 | Setup `nix-darwin` using the `switch` helper: |
| 60 | 61 | |
| 61 | | Additionally, it may be helpful to disable the unsigned app popup. |
| 62 | 62 | ``` |
| 63 | | sudo spctl --master-disable |
| 64 | | # then, go to System Settings -> Privacy to allow unsigned apps. |
| 63 | ./switch |
| 65 | 64 | ``` |
| 65 | |