This repository contains my workstation configuration and can be restored using the setup below.
sh <(curl -L https://nixos.org/nix/install)
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --add https://nixos.org/channels/nixos-unstable unstable
nix-channel --update
# if not on NixOS
export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}
nix-shell '<home-manager>' -A install
rm -rf .config/home-manager/
git clone https://github.com/samcrudge/dotfiles.git .config/home-manager/
Run home-manager for the first time with this configuration
home-manager switch
The de/encryption requires the unlock key.
# 1password
op document get gitcrypt --force | git-crypt unlock -