Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 2.49 KB

README.org

File metadata and controls

52 lines (37 loc) · 2.49 KB

Nix Resources

Search for nix packages using https://search.nixos.org/packages?channel=unstable

Cleanup generations https://nixos.org/manual/nix/stable/package-management/garbage-collection.html

Nix Cheatsheet

CommandDescription
nix-env -qList nix installed packages
nix-channel --updateUpdates channels to get latest package versions, run darwin-rebuild switch to installe new versions
darwin-rebuild switch -I darwin-config=<PATH>Use new configuration and install packages
nix-collect-garbage --delete-oldDelete all old generations and cleans up system
sudo nix-collect-garbage --delete-oldDelete all old generation for nix darwin, see: LnL7/nix-darwin#237 (comment)
home-manager expire-generations <TIMESTAMP>Delete all old home-manager generations
nix-store --query --referrers <store-pkg-dir>Find which package installed a dependency
nix profile wipe-historyRemove old nix profile versions

Nix Troublshooting

Missing Attribute error

Sometimes you can get a missing attribute error due to `nixpkgs` channels missing from the channel list.

`nix-channels –list`

This should show a channel for `nix-darwin`, `home-manager` and `nixpkgs`. To add the required channels for `nixpkgs` run the following and then update all channels:

`nix-channel –add https://nixos.org/channels/nixpkgs-unstable nixpkgs`

OSX Cheatsheet

CommandDescription
softwareupdate --all --install --forceUpdate OSX and software

Packages to move

google-chrome

anki

gimp

inkscape

OSX Missing from Nix

RVM

NVM

localstack w/ awslocal

docker desktop

brew

keepingyouawake (brew)