mirror of
https://github.com/larstvei/nix-config.git
synced 2024-11-26 08:58:31 +00:00
larstvei
b527d57ba7
Tracking directories is there in order for shells inside Emacs to pick up on what the current directory is. This does some weird printing that I don't understand, and interferes when Emacs runs shell commands and parses the output. This completely brakes projectile mode in Emacs. The fix was apparently to not attempt to track the directory if the terminal is too dumb. |
||
---|---|---|
emacs@24c8052f0e | ||
modules | ||
patches | ||
.gitmodules | ||
flake.lock | ||
flake.nix | ||
README.org |
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
-
sh <(curl -L https://nixos.org/nix/install)
-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
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. -
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