Collection of dotfiles managed by nix/home-manager and NixOS configuration.
Get a Github API token for gh
, then run
bash <(curl https://raw.githubusercontent.com/iff/dotfiles/master/sh)
to
- install Nix and set experimental features
- create an ssh key (one per machine)
gh auth login
- clone repository and run
nix run
Assuming installed Nix/NixOS, eg. curl -L https://nixos.org/nix/install | sh
and make sure that flakes are enabled:
echo "extra-experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
Then just clone and install:
git clone [email protected]:iff/dotfiles.git
nix run . switch -- --flake .#$(hostname)
After the first activation use home-manager: home-manager switch --flake .#$(hostname)
On Nixos run: sudo nixos-rebuild switch --flake '.#$(hostname)'