Skip to content

Latest commit

 

History

History
71 lines (59 loc) · 2.36 KB

File metadata and controls

71 lines (59 loc) · 2.36 KB

dotfiles

This codebase uses Home Manager and Nix flakes to setup and manager my personal environment. The user environment may be installed "standalone" or encorporated into a NixOS system with the provided flake outputs.

What's Included (i.e. how do I computer)

modules

packages

software

Using

Standalone

home-manager switch --flake .#[stevan-wsl|stevan-mac|stevan]

First Time (Fresh Nix Install)

nix --extra-experimental-features 'nix-command flakes' develop
home-manager --extra-experimental-features 'nix-command flakes' switch --flake .#stevan

# set home-manager zsh to be user shell
echo $(which zsh) | sudo tee -a /etc/shells
csh -s $(which zsh) $USER

Prerequisites

  • home-manager
  • direnv (optional)
  • nix (optional)

Prefered installation is to use direnv, which will set up the default devShell and install home-manager.o

Alternatively, manually run nix develop to setup and install home-manager.

Alternatively, follow the home-manager installation guide.

Common Issues

MacOS Upgrade Breaking

See this github issue: Copying the following hook (copied from /etc/bashrc) to /etc/zshrc and restarting the shell fixed everything again:

# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix