My personal dotfiles. Managed with Nix Flake.
NOTE: home-manager needs to know your username. You can run
./script/patch-vars
to change the username in the configurations to your own
username.
To use the dotfiles, first install Nix (not necessarily on NixOS). Nix is a powerful package manager and build system. I recommend using nix-installer from DeterminateSystems.
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
Optionally, if you prefer to install Nix non-interactively:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm
make init-nixos
make init-darwin
Nix does not manage the system-width configuration for Ubuntu, so I use a script to quickly bootstrap Ubuntu system environment.
# Check the script content to see some useful options.
./scripts/init-ubuntu
make init-home
Notes:
make init-home
only affects user-level configurations. Therefore, it even does not require “sudo”, as long as you have correctly installed Nix.- So it won’t change the user’s default shell which needs to touch the system
file
/etc/passwd
. You may manually set the default with chsh(1).
- rennsax/init.lua: My neovim configuration. (I do not use Neovim anymore, hence it may be obsolete.)
- rennsax/.emacs.d: My Emacs configuration. 🍓