On a new machine, do the following:
- Install NixOS on a flashdrive. Replace “sdX” with correct device name
dd if=path-to-image of=/dev/sdX status=progress
- Create the machine-specific configuration, see
machine/
for examples. - Boot the new machine onto the flashdrive. Booting onto a flashdrive is machine specific. Search it.
- Get my scripts
git clone https://github.com/iowaguy/dotfiles workspace/areas/system-management/dotfiles/
- Run my installer script
cd home/programs/mynix sudo ./mynix fresh
- Reboot
- Run post-install script
git clone https://github.com/iowaguy/dotfiles ~/workspace/areas/system-management/dotfiles cd /persist/home/ben/workspace/areas/system-management/dotfiles/home/programs/mynix ./mynix install
- Add new machine’s
syncthing
ID to the devices in the configuration.nix, and add the device names to the list of devices to sync for each dir. - Trust GPG key. The
GPG-ID
is the last 12 characters of the fingerprint fromgpg -k
.gpg --edit-key <KEY_ID> gpg> trust
- Setup
pass
git clone [email protected]:iowaguy/passwords.git ~/.password-store pass init <GPG-ID>
- Install
doom-emacs
git clone https://github.com/hlissner/doom-emacs ~/.emacs.d ~/.emacs.d/bin/doom install
- Generate ssh key
ssh-keygen -t ed25519 -C "ben@<HOSTNAME>"
- install Better BibTeX
- Follow installation instructions here.
install zotfile plugin for zotero
- use zotfile to rename all pdfs the same as their cite key
- go to tools -> ZotFile preferences -> renaming rules -> set format to
%b
- go to tools -> ZotFile preferences -> renaming rules -> set format to
export references to bibtex via zotero:
- File > Export Libarary > Keep Updated > /home/ben/workspace/projects/zettelkasten/references.bib
If you get an error when creating the zpool that looks like /dev/sda2 is part
of the exported pool 'rpool'
, run the following, and then try again.
sudo zpool labelclear -f rpool
If there is already a pool with the same name, it may be necessary to zero the disk, like so:
sudo dd if=/dev/zero of=<DEVICE> bs=16M status=progress
To find icons, use gucharmap
.
nix-shell -p gnome.gucharmap --run gucharmap
Use ctrl-f
to find the glyph, then right click on the icon to show what font