caarlos0 / dotfiles.nix

my dotfiles, now in nix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotfiles.nix

This is my latest dotfiles generation.

I've been experimenting with many different tools to manage them properly, from ansible to shell scripts, and never liked any of them that much, to be honest.

You can see the history on these repositories:

This is my latest attempt, using nix.

What's different

Not much, this is roughly a translation from the latest state of dotfiles.fish, although some parts are still missing (pending me learning nix-darwin), and others are a bit differet, like the way Fish and Neovim are set up.

Other than that, more of the same...

Preparing

  1. Install nix and home-manager.
  2. Enable some experimental features:
mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf

Applying

task apply

On macOS, you may also:

task apply_darwin

On both

Home-manager will not change your default shell, so you need to do it yourself.

fish
which fish | sudo tee -a /etc/shells
chsh -s (which fish)

Update packages

task update

And run the switch command again.

Clean up

nix-collect-garbage

TODO

  • postgres module
  • set-defaults
  • maybe move most of the functions to bin?
  • yubikey
  • code of conduct, license, etc
  • better organize ./modules/dev/

About

my dotfiles, now in nix

License:MIT License


Languages

Language:Lua 48.9%Language:Nix 34.7%Language:Shell 15.3%Language:Scheme 1.1%