NixOS
https://nixos.wiki/wiki/Cheatsheet
- Edit the config:
EDITOR=vim nixos-rebuild edit
- File that nixos-rebuild edits:
/etc/nixos/configuration.nix
- ??:
/etc/nixos/hardware-configuration.nix
- ??:
/nix/store/
- Commit / switch the changes:
nixos-rebuild switch
- ??:
nixos-rebuild switch --upgrade
- ??:
nixos-rebuild --upgrade
- ??:
nix-env -u '*'
- Clean old branches: ??
- Search for programs:
nix-env -qaP '*' --description
- Ephemeral shell:
nix-shell -p <program>
- Install a program: ??
- ??:
nix-channel --list
- ??:
nix-channel --add https://nixos.org/channels/nixos-21.05 nixos
- ??:
nix-channel --update
- ??:
nix-store --optimise
- ??:
nix-collect-garbage
- ??:
nix-collect-garbage -d
- ??:
nix-env
- ??: ``
- ??: ``