Skip to content

Nix handbook

Yash Raj edited this page Apr 6, 2024 · 7 revisions
  • Instead of changing font size or xcursor size use, dpi settings which will help to keep it global, in a way that you can use the same configuration on small screens and large screens.

  • How to nixos rebuild?

sudo nixos-rebuild switch --flake .#hostName
  • How to use nix shell to install packages?
nix shell nixpkgs#packageName
  • Change channels directly from terminal
$ nix-env -f channel:nixos-unstable -iA unrar
  • How to cleanup nixos
nix-collect-garbage -d
sudo nix-collect-garbage -d
  • Git PAT
git remote set-url origin https://<TOKEN>@github.com/<USERNAME>/<REPOSITORYNAME>.git
Clone this wiki locally