A NixOS Module that is used to declaratively configure your home directory ~/.config
folder.
This effectively makes configuration.nix
the only Dotfile you ever need
Installation (Root Level)
- Add these lines to your Flakes file
flakes.nix
- Bring
inputs
parameter toconfiguration.nix
function scope - Add these lines to
configuration.nix
nix run home-manager/master -- init && sudo cp ~/.config/home-manager/home.nix /etc/nixos
- Finally rebuild.
sudo nixos-rebuild switch --flake /etc/nixos#default
You will now have ahome.nix
in/etc/nixos/
Installation (Userland)
- Add the package
pkgs.home-manager
toconfiguration.nix
home-manager init
Updating Home-Manger
home-manager switch