2017-12-05 22:39:10 -08:00
|
|
|
# Mein dotfiles
|
2017-09-02 10:01:00 -07:00
|
|
|
|
2020-02-11 15:59:14 -08:00
|
|
|
There are a few, special computers in my life; local and remote. Maintaining
|
2020-03-27 18:48:16 -07:00
|
|
|
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
|
2020-02-11 15:59:14 -08:00
|
|
|
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.
|
2013-03-01 01:47:00 -08:00
|
|
|
|
2020-02-11 15:40:54 -08:00
|
|
|
![Me looking busy](/../screenshots/fluorescence/fakebusy.png?raw=true)
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
<span><img src="/../screenshots/fluorescence/desktop.png?raw=true" height="188" /></span>
|
|
|
|
<span><img src="/../screenshots/fluorescence/rofi.png?raw=true" height="188" /></span>
|
|
|
|
<span><img src="/../screenshots/fluorescence/tiling.png?raw=true" height="188" /></span>
|
|
|
|
</p>
|
|
|
|
|
2020-02-11 15:59:14 -08:00
|
|
|
+ **Operating System:** NixOS 19.09
|
2020-02-11 16:18:24 -08:00
|
|
|
+ **Shell:** zsh 5.7.1 + zgen
|
|
|
|
+ **DM:** lightdm + lightdm-mini-greeter
|
|
|
|
+ **WM:** bspwm + polybar
|
2020-02-11 15:59:14 -08:00
|
|
|
+ **Editor:** [Doom Emacs][doom-emacs] (and occasionally [vim][vimrc])
|
|
|
|
+ **Terminal:** st
|
2020-02-11 16:18:24 -08:00
|
|
|
+ **Launcher:** rofi
|
|
|
|
+ **Browser:** firefox
|
|
|
|
+ **GTK Theme:** [Ant Dracula](https://github.com/EliverLara/Ant-Dracula)
|
|
|
|
+ **Icon Theme:** [Paper Mono Dark](https://github.com/snwh/paper-icon-theme)
|
2020-01-12 23:11:02 -08:00
|
|
|
|
2017-12-05 22:39:10 -08:00
|
|
|
## Quick start
|
2016-10-19 07:56:37 -07:00
|
|
|
|
2019-08-06 10:57:38 -07:00
|
|
|
```sh
|
2020-01-13 16:56:39 -08:00
|
|
|
# Assumes your partitions are set up and root is mounted on /mnt
|
|
|
|
curl https://raw.githubusercontent.com/hlissner/dotfiles/nixos/deploy | sh
|
2017-12-05 22:39:10 -08:00
|
|
|
```
|
2020-01-12 23:11:02 -08:00
|
|
|
|
2020-02-11 15:59:14 -08:00
|
|
|
Which is equivalent to:
|
2020-01-13 16:56:39 -08:00
|
|
|
|
|
|
|
```sh
|
2020-02-13 12:37:12 -08:00
|
|
|
USER=${USER:-hlissner}
|
2020-01-13 16:56:39 -08:00
|
|
|
DOTFILES=/home/$USER/.dotfiles
|
2020-02-13 12:37:12 -08:00
|
|
|
git clone https://github.com/hlissner/dotfiles /etc/dotfiles
|
2020-01-13 16:56:39 -08:00
|
|
|
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
|
2020-04-06 20:06:47 -07:00
|
|
|
echo "import /etc/dotfiles \"$$HOST\" \"$$USER\"" >/mnt/etc/nixos/configuration.nix
|
2020-01-13 16:56:39 -08:00
|
|
|
|
|
|
|
# make install
|
|
|
|
nixos-install --root /mnt -I "my=/etc/dotfiles"
|
|
|
|
```
|
|
|
|
|
|
|
|
### Management
|
|
|
|
|
2020-01-12 23:11:02 -08:00
|
|
|
+ `make` = `nixos-rebuild test`
|
|
|
|
+ `make switch` = `nixos-rebuild switch`
|
|
|
|
+ `make upgrade` = `nix-channel --update && nixos-rebuild switch`
|
2020-01-13 16:56:39 -08:00
|
|
|
+ `make install` = `nixos-generate-config --root $PREFIX && nixos-install --root
|
|
|
|
$PREFIX`
|
2020-01-13 15:16:02 -08:00
|
|
|
+ `make gc` = `nix-collect-garbage -d` (use sudo to clear system profile)
|
2020-01-12 23:11:02 -08:00
|
|
|
|
|
|
|
|
|
|
|
[doom-emacs]: https://github.com/hlissner/doom-emacs
|
|
|
|
[vimrc]: https://github.com/hlissner/.vim
|