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