Please try to understand this configuration before actually installing it (I suggest starting by reading the flake.nix
file).
Updating the flake.lock
means that you'll have different versions for your packages compared to me. Therefore, you might have problems that I won't have. This repository is more an example for others anyway, so don't let this demotivate you.
$ nix flake update ~/.config/home-manager
$ home-manager switch --option eval-cache false --flake ~/.config/home-manager
(This guide assumes you are installing this through the NixOS ISO.)
- Download this repository:
$ nix-shell -p git --run 'git clone https://github.com/TomAintAround/nixos-configs /tmp/nixos-config'
$ cd /tmp/nixos-config
-
Modify it to your will. I recommend modifying the
flake.nix
output's variables. -
Move the system configuration to
~/.config/home-manager
.
$ rm -rI ~/.config/home-manager/
$ cp -r home-manager ~/.config/
- Add a
secrets.nix
file to~/.config/home-manager
with the following format. If you actually tried to understand this configuration, you might already know what it does.
{
email = "Insert email here";
}
- Install.
$ home-manager switch --option eval-cache false --flake ~/.config/home-manager