/nix-rick

Primary LanguageNix

nix-rick

My attempt at managing my packages with nix.

Usage

./setup.sh

  • Gets curl
  • Gets nix
  • Configures nix
  • Installs packages into a profile.

Uninstall

nix profile remove --all

Concepts

flakes

  • dir with flake.nix and flake.lock.
  • I can specify packages and lock them.
  • Easily share nix code.

profiles

  • Can just think of these as users.
  • Profiles have a similar layout as the linux root dir. For example, ~/.nix-profile/bin/make points to make in the Nix store.
ls -l ~/.nix-profile/bin/make 
lrwxrwxrwx 1 root root 66 Dec 31  1969 /home/rick/.nix-profile/bin/make 
-> /nix/store/afp0kzsyj08idy9zy1wx154nii3idalj-gnumake-4.4.1/bin/make
  • These packages are installed into the nix-rick profile.

Resources

zero-to-nix Nix Reference Nix as a homebrew replacement

Road Map

  • Add oh-my-zsh
  • Explore how project specific flake.nix interacts with the nix-rick profile.
  • See if rustup can be automated
  • Add my dotfiles to this?
  • Install xclip