This is my NixOS configuration. If you want to create your own, check out dustinlyons/nixos-config which was used as a template for this configuration.
If this is a fresh install, you need to restart the machine.
MacOS
xcode-select --install
softwareupdate --install-rosetta --agree-to-license
Settings > Privacy & Security > Full Disk Access > + > Terminal > Add Access
Thank you for the installer, Determinate Systems!
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
After installation, open a new terminal session to make the nix
executable available in your $PATH
. You'll need this in the steps ahead.
The keys id_ed25519
and id_ed25519_agenix
need to be saved in the ~/.ssh
directory.
chmod 400 ~/.ssh/id_ed25519 ~/.ssh/id_ed25519_agenix
This should be done in the ~/
directory.
git clone git@github.com:tharakadesilva/nixos-config.git
nix run .#build-switch
- Accept Xcode license
sudo xcodebuild -license accept
- Enable Corepack
sudo corepack enable
-
Update profile picture in MacOS Settings
-
Set up the second fingerprint
Settings > Touch ID & Password > Add Fingerprint
- Enable unlock with Apple Watch
Settings > Touch ID & Password > Unlock with Apple Watch
- Grant full disk access to Warp
Settings > Privacy & Security > Full Disk Access > + > Warp > Add Access
- Set up Apple Intelligence & Siri
Settings > Privacy & Security > Apple Intelligence & Siri
- Enable Apple Intelligence
- Enable Siri
- ChatGPT > Set Up...
- Sign In
- Set up Warp
- Settings > Appearance > Prompt > Shell Prompt (PS1)
- Settings > Appearance > Text > Terminal Font > JetBrainsMono Nerd Font
- Settings > Features > Session > Receive desktop notifications from Warp > On
- Settings > Features > Terminal > Use Audible Bell > On
- Set up Magnet
Synchronize settings via iCloud
- Set up Wallet & Apple Pay
Settings > Wallet & Apple Pay
- The cards are already added. You just need to verify the cards.
- Also, select
Hide My Email
- Restart the machine
Some settings like the tap to click on MacOS needs to either log out and log in again or restart the machine. Just restart the machine...
Linux (non-NixOS)
Thank you for the installer, Determinate Systems!
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
For managed systems where you can't create users, you can use the following command to install Nix:
sh <(curl -L https://nixos.org/nix/install) --no-daemon
After installation, open a new terminal session to make the nix
executable available in your $PATH
. You'll need this in the steps ahead.
For Linux (non-NixOS), this has to be a standalone installation.
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install
This should be done in the ~/
directory.
git clone https://github.com/tharakadesilva/nixos-config.git
nix run .#build-switch