update devices page

This commit is contained in:
Aaron Honeycutt 2025-07-07 07:42:41 -06:00
parent c6619300ff
commit 6265726c21
2 changed files with 14 additions and 27 deletions

View file

@ -1,11 +1,19 @@
# Nix Package Manager
## Managing packages
## Add packages
```bash
nix-env -iA nixpkgs.<packagename>
```
# Nix Package Manager from Determinate Nix
## Add packages
```bash
nix profile add nixpkgs#package-name
```
# NixOS
## Updating a Flake based system
@ -18,18 +26,7 @@ sudo nixos-rebuild switch
## Updating a non-Flake based system
```bash
sudo nixos-rebuild switch
sudo nixos-rebuild switch --upgrade
```
You can use `boot` instead of `switch` for the system to boot into the new generation on reboot instead.
# Contributing to nixpkgs
## Updating packages that you maintain
```bash
git checkout -b bump-mypkg
nix-shell -p nix-update --run 'nix-update <pkg> --commit'
nix-build -A <pkg> # ensure it builds
git push <fork> bump-mypkg
```