-
Install prerequisites:
-
git clone [email protected]:sullyj3/nix-config.git
-
mkdir -p ~/.config/home-manager
-
symlink /etc/nixos/flake.nix and ~/.config/home-manager/flake.nix to this flake.nix
-
Create new machine specific configs as needed in flake outputs
-
If on nixos:
sudo nixos-rebuild switch
. This will automatically choose the config from nixosConfigurations that matches the hostname. -
home-manager switch
. This will choose the home-configuration nameduser@hostname
. -
Post install steps:
- Set up
cheat
1. Once it has downloaded community cheatsheets, do
git clone [email protected]:sullyj3/cheatsheets.git ~/.config/cheat/cheatsheets/personal
- If using a non-NixOS GUI distro, add the following line to
~/.profile
(why):
export XDG_DATA_DIRS=$HOME/.nix-profile/share:$HOME/.share:"${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}"
- Set up
This is necessary to get desktop entries (used for icons/entries in application launchers) for installed graphical applications. See this issue. Hopefully that issue is closed the next time I read this and I can remove this step.
- Automate some of these steps this is getting a bit wack. At least make a "do nothing script"
- Add
cheat
config.1