From 1198150d58705692d81897fa551c2808943a2e3a Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Fri, 16 Jan 2026 20:07:52 -0700 Subject: [PATCH] update nix doc --- Linux/nix-tips-and-tricks.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Linux/nix-tips-and-tricks.md b/Linux/nix-tips-and-tricks.md index 7c8ec7d..2a88177 100644 --- a/Linux/nix-tips-and-tricks.md +++ b/Linux/nix-tips-and-tricks.md @@ -6,14 +6,20 @@ nix-env -iA nixpkgs. ``` -# Nix Package Manager from Determinate Nix - -## Add packages +If using flakes: ```bash nix profile add nixpkgs#package-name ``` +## Run a command + +If using flakes: + +```bash +nix shell nixpkgs#hello -c hello +``` + # NixOS ## Updating a Flake based system