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 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 ~/areas/system-management/dotfiles cd /home/ben/areas/system-management/dotfiles/home/programs/mynix ./mynix install
- Add new machine’s
syncthingID 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-IDis the last 12 characters of the fingerprint fromgpg -k.gpg --edit-key <KEY_ID> gpg> trust
- Setup
passgit clone [email protected]:iowaguy/passwords.git ~/.password-store pass init <GPG-ID>
- Install
doom-emacsgit 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/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 rpoolIf 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=progressTo find icons, use gucharmap.
nix-shell -p gnome.gucharmap --run gucharmapUse ctrl-f to find the glyph, then right click on the icon to show what font
To view attributes of pkgs:
home.file."debug-nur.txt".text = builtins.toString (builtins.attrNames pkgs);