- Pinned checkout of nixpkgs
- home-manager
- doom-emacs
xmonad
urxvt
Not extensively tested, probably with hickups.
cd /etc/nixos
sudo chown -R $USER .
git init
git remote add origin [email protected]:sveitser/nixconfig.git
git pull --recurse-submodules origin master
# To save time, copy nixpkgs repo to /etc/nixos/nixpkgs from somewhere close.
git submodules init
ln -s /etc/nixos/nixpkgs ~/nixpkgs
ln -s /etc/nixos/home-nixpkgs ~/.config/nixpkgs
mv configuration.nix{,.bkp}
ln -s this-machines-config.nix configuration.nix
# we won't be using channels
rm -r ~/.nix-defexpr/*
ln -s /etc/nixos/nixpkgs ~/.nix-defexpr
sudo nixos-rebuild -I nixpkgs=/etc/nixos/nixpkgs -I nixos-config=/etc/nixos/configuration.nix switch
nix-shell ~/.config/nixpkgs/home-manager -A install
home-manager switch
# Probably best to reboot at this point.
- Deterministic doom emacs setup.
- doom-emacs submodule.
- Emacs packages via nix.
- Recompile xmonad when configuration is modified.
Inspired by and borrowed from https://github.com/adisbladis/nixconfig.