Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.83 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.83 KB

Home Manager Config

Usage

  1. Install prerequisites:

    1. Nix - https://nixos.org/manual/nix/stable/installation/installing-binary.html
    2. home-manager - https://rycee.gitlab.io/home-manager/index.html#ch-installation
  2. git clone [email protected]:sullyj3/nix-config.git

  3. mkdir -p ~/.config/home-manager

  4. symlink /etc/nixos/flake.nix and ~/.config/home-manager/flake.nix to this flake.nix

  5. Create new machine specific configs as needed in flake outputs

  6. If on nixos: sudo nixos-rebuild switch. This will automatically choose the config from nixosConfigurations that matches the hostname.

  7. home-manager switch. This will choose the home-configuration named user@hostname.

  8. Post install steps:

    1. Set up cheat1. Once it has downloaded community cheatsheets, do

    git clone [email protected]:sullyj3/cheatsheets.git ~/.config/cheat/cheatsheets/personal

    1. 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/}"

Why do I need to tweak XDG_DATA_DIRS

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.

TODO

  • Automate some of these steps this is getting a bit wack. At least make a "do nothing script"
  • Add cheat config.1

Footnotes

  1. Not sure how to get cheat to understand that it needs to download community cheatsheets if there is already a config there. Maybe open an issue? 2