main
 1id: general-deprecated-nix-commands
 2message: Use new nix command instead of legacy nix-env
 3severity: info
 4language: bash
 5note: |
 6  Legacy Nix commands are deprecated. Use the new nix CLI:
 7  
 8  Instead of:          Use:
 9  nix-env -iA          nix profile install
10  nix-env -q           nix profile list
11  nix-build            nix build
12  nix-shell            nix develop (for flakes)
13rule:
14  any:
15    - pattern: nix-env -iA $PKG
16    - pattern: nix-env -i $PKG
17    - pattern: nix-env -q