nix

Table of Contents

1. Removing garbage

# NOTE: use of sudo is important
sudo nix-collect-garbage -d  # bacame handy to remove cuda11.8 when i downgraded
sudo nix-store --gc

# figuring out sources of some package
nix-tree # this only shows some
sudo nix-store --query --roots <path_to_some_directory_in_nix_store> # this shows more

2. Upgrade

sudo nix-channel –add https://channels.nixos.org/nixos-24.05 nixos && sudo nixos-rebuild boot –show-trace –upgrade-all

3. Links

Created: 2024-07-16 Tue 16:44

Validate