Find a file
2020-04-06 23:26:35 -04:00
bin bin/rofi/passmenu: show notifications with notify-send 2020-03-29 01:45:17 -04:00
config Rewrite spotify+spotify-tui layer 2020-04-06 15:41:35 -04:00
hosts Parameterize username 2020-04-06 23:26:35 -04:00
modules Generalize dev/love2d.nix into dev/lua.nix 2020-04-06 23:26:35 -04:00
packages Replace emacs 26 with 27 2020-03-07 22:10:02 -05:00
.gitignore Complete rewrite 2020-01-12 18:20:28 -05:00
default.nix Parameterize username 2020-04-06 23:26:35 -04:00
deploy deploy script: clone from nixos branch 2020-01-23 19:03:23 -05:00
LICENSE Update copyright year 2020-01-12 18:14:27 -05:00
Makefile Parameterize username 2020-04-06 23:26:35 -04:00
overlays.nix Replace emacs 26 with 27 2020-03-07 22:10:02 -05:00
README.md Parameterize username 2020-04-06 23:26:35 -04:00

Mein dotfiles

There are a few, special computers in my life; local and remote. Maintaining them is busywork I wouldn't wish on my worst enemy. NixOS tempted me with the promise of glorious reproducibility and declared its declarative-ness with enough chutzpah to make anime real again.

XDG conventions in hand, I set out to conquer my white whale and annihilate what vestiges of my social life remain.

Me looking busy

  • Operating System: NixOS 19.09
  • Shell: zsh 5.7.1 + zgen
  • DM: lightdm + lightdm-mini-greeter
  • WM: bspwm + polybar
  • Editor: Doom Emacs (and occasionally vim)
  • Terminal: st
  • Launcher: rofi
  • Browser: firefox
  • GTK Theme: Ant Dracula
  • Icon Theme: Paper Mono Dark

Quick start

# Assumes your partitions are set up and root is mounted on /mnt
curl https://raw.githubusercontent.com/hlissner/dotfiles/nixos/deploy | sh

Which is equivalent to:

USER=${USER:-hlissner}
DOTFILES=/home/$USER/.dotfiles
git clone https://github.com/hlissner/dotfiles /etc/dotfiles
ln -s /etc/dotfiles $DOTFILES
chown -R $USER:users $DOTFILES

# make channels
nix-channel --add "https://nixos.org/channels/nixos-${NIXOS_VERSION}" nixos
nix-channel --add "https://github.com/rycee/home-manager/archive/release-${NIXOS_VERSION}.tar.gz" home-manager
nix-channel --add "https://nixos.org/channels/nixpkgs-unstable" nixpkgs-unstable

# make /etc/nixos/configuration.nix
nixos-generate-config --root /mnt
echo "import /etc/dotfiles \"$$HOST\" \"$$USER\"" >/mnt/etc/nixos/configuration.nix

# make install
nixos-install --root /mnt -I "my=/etc/dotfiles"

Management

  • make = nixos-rebuild test
  • make switch = nixos-rebuild switch
  • make upgrade = nix-channel --update && nixos-rebuild switch
  • make install = nixos-generate-config --root $PREFIX && nixos-install --root $PREFIX
  • make gc = nix-collect-garbage -d (use sudo to clear system profile)