Go to file
larstvei de6f0c5ca5 Remove custom Emacs build
Switching (updating) caused Emacs to build, which takes a couple of minutes.
This made is less tempting to update, leading to a bit more clutter.

It seems that I am sacrificing rounded corners and having the color theme sync
with the OS.
2024-03-28 01:56:03 +01:00
emacs@101dd81a69 Update 2024-03-26 18:26:13 +01:00
modules Remove custom Emacs build 2024-03-28 01:56:03 +01:00
nix Add a .gitignore and nix/nix.conf 2024-03-27 22:30:38 +01:00
patches This file was accidentally committed 2022-09-20 00:52:06 +02:00
pkgs/maude-mac Update maude 2023-05-04 00:09:34 +02:00
.gitignore Add a .gitignore and nix/nix.conf 2024-03-27 22:30:38 +01:00
.gitmodules Initial commit 2022-09-18 18:30:24 +02:00
flake.lock Remove custom Emacs build 2024-03-28 01:56:03 +01:00
flake.nix Remove custom Emacs build 2024-03-28 01:56:03 +01:00
README.org Readme pluck 2022-09-19 16:46:11 +02:00

nix-config for macOS

This repo contains a declarative specification of the setup of my mac, using Nix, with nix-darwin and Nix Flakes. The initial setup is mimicked after shaunsingh's setup. Homebrew is installed for its cask support (i.e. for mac apps lacking a Nix derivation).

Note that I am a complete novice in Nix, so this is not a reliable source for nix-stuffs (copy at your own risk).

Steps to install

  1. Install Nix for macOS

    sh <(curl -L https://nixos.org/nix/install)
  2. Install Homebrew

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  3. Clone this repo (assuming there is no ~/.config on the system already)

    git clone --recurse-submodules https://github.com/larstvei/dotfiles.git ~/.config

    Note that the --recurse-submodules pulls down my Emacs configuration, which is not necessary for the setup to work.

  4. Build the setup from flake.nix

    cd ~/.config/
    nix build .#darwinConfigurations.larstvei-macbookpro.system --extra-experimental-features nix-command --extra-experimental-features flakes
    ./result/sw/bin/darwin-rebuild switch --flake .#larstvei-macbookpro

Maintaining

After making changes, I run the following command (from the ~/.config directory):

darwin-rebuild switch --flake .#larstvei-macbookpro