Skip to content

tharakadesilva/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NixOS Config

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.

Prerequisites

If this is a fresh install, you need to restart the machine.

Installing

MacOS

1. Install dependencies

xcode-select --install

2. Install Rosetta 2

softwareupdate --install-rosetta --agree-to-license

3. Enable full disk access for Terminal

Settings > Privacy & Security > Full Disk Access > + > Terminal > Add Access

4. Install Nix

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.

5. Copy the NIX SSH keys from USB

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

6. Clone the Repository

This should be done in the ~/ directory.

git clone git@github.com:tharakadesilva/nixos-config.git

7. Build and apply the configuration

nix run .#build-switch

Manual Steps

  1. Accept Xcode license
sudo xcodebuild -license accept
  1. Enable Corepack
sudo corepack enable
  1. Update profile picture in MacOS Settings

  2. Set up the second fingerprint

Settings > Touch ID & Password > Add Fingerprint

  1. Enable unlock with Apple Watch

Settings > Touch ID & Password > Unlock with Apple Watch

  1. Grant full disk access to Warp

Settings > Privacy & Security > Full Disk Access > + > Warp > Add Access

  1. Set up Apple Intelligence & Siri

Settings > Privacy & Security > Apple Intelligence & Siri

  • Enable Apple Intelligence
  • Enable Siri
  • ChatGPT > Set Up...
    • Sign In
  1. 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
  1. Set up Magnet

Synchronize settings via iCloud

  1. 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
  1. 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)

1. Install Nix

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.

2. Install Home Manager

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

3. Clone the Repository

This should be done in the ~/ directory.

git clone https://github.com/tharakadesilva/nixos-config.git

4. Build and apply the configuration

nix run .#build-switch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published