Skip to content

vaporif/nix-darwin

Repository files navigation

Nix-darwin + home-manager

This is my personal configuration for nix-darwin with dotfiles and tools.

setup

  1. Clone this repo
  2. Install homebrew
  3. Install nix
  4. Install nix-darwin

Run the initial setup which will build all the derivations which may take a while.

  1. Override /etc/nix-darwin dir with this repo

Update your machine name in flake.nix

darwinConfigurations."MacBook-Pro"

Update username & home path in flake.nix

users.users.vaporif = {
  name = "vaporif";
  home = "/Users/vaporif";
};

Inside home.nix

  home = {
        homeDirectory = "/Users/vaporif";
      username = "vaporif";
  1. Apply config
sudo darwin-rebuild switch
  1. Allow direnv .envrc for default devshell
direnv allow ~

ai copilot

If you want to use avante (default bind a)

  1. Register at open-router
  2. Create a new key
  3. Override my secrets/secrets.yaml with
open-router-key: YOUR_KEY
  1. Create new age key
age-keygen -y ~/.config/sops/age/key.txt
  1. Update key path in system.nix
  sops.age.keyFile = "/Users/vaporif/.config/sops/age/key.txt";
  1. Encrypt your secrets
sops -e -i secrets/secrets.yaml
nix-shell -p sops --run "sops -e -i secrets/secrets.yaml"
  1. Re-apply nix darwind
sudo darwin-rebuild switch

Learning

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published