Skip to content

mjhoy/dotfiles

Folders and files

NameName
Last commit message
Last commit date
Mar 4, 2025
Dec 18, 2021
Sep 6, 2023
Aug 14, 2021
Mar 3, 2025
Dec 9, 2024
Jun 29, 2017
Jan 23, 2025
Sep 4, 2022
Jun 10, 2018
Mar 4, 2025
Apr 10, 2018
Jan 7, 2024
Sep 14, 2021
Mar 19, 2019
Dec 28, 2024
Sep 24, 2024
Jul 9, 2017
Oct 20, 2015
Oct 28, 2022
Oct 28, 2022
May 20, 2010
Nov 18, 2021
Mar 6, 2019
Aug 9, 2010
Jun 12, 2017
Feb 25, 2024
Oct 7, 2013
Sep 29, 2018
Jul 27, 2024
Oct 16, 2015
Aug 13, 2017
Nov 24, 2024

Repository files navigation

dotfiles

My configuration. Mostly used on OSX.

Editor setup

Most of my work happens in Emacs. Config for programming languages, and org-mode stuff lives in emacs.d/. I don't use vim so much these days and have a minimal config, in vim/.

Nix

As much as possible, I like to install software with nix.

I configure a global environment, devEnv, defined in nix/nixpkgs/config.nix. The simple script scripts/build-nix-env attempts to build and install this.

nixpkgs/default.nix is just a pointer to a pinned version of nixpkgs, defined at nix/sources.json. This can be updated by running niv update nixpkgs in the project root.

Other stuff

There are some random projects in src/, and random notes in notes/.

Installing

Check out

git clone https://github.com/mjhoy/dotfiles.git

And then:

make install

sets up the symlinks.

Nix setup

Follow the instructions here: https://nixos.org/download.html

On newer Mac OSes, you might need to tweak this to be able to get a /nix directory. Check installation instructions here:

https://nixos.org/manual/nix/stable/#sect-macos-installation

I used the recommended approach:

curl -L https://nixos.org/nix/install | sh -s -- --darwin-use-unencrypted-nix-store-volume

One last step is to remove whatever channel was set up with in the installation. I run:

nix-channel --list # note the channels listed
nix-channel --remove <channel> # whatever channels were listed

If everything is properly set up, nix should use the nixpkgs pinned at nixpkgs/default.nix.

License

MIT. See included LICENSE file.