Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
bluskript committed Apr 5, 2024
1 parent 1b5e77e commit f360d20
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ and then reference it in your `environment.systemPackages`:
}
```

### Usage

By default, `nix-inspect` will try to load your config where it is, by default this will be /etc/nixos if you are using flakes or the path in NIX_PATH if you are using legacy. If this behavior is not what you want, `nix-inspect` comes with some flags:

- `--expr` / `-e` - load an arbitrary expression. Example: `nix-inspect -e { a = 1; }`
- `--path` / `-p` - load a config at a specific path. Example: `nix-inspect -p /persist/etc/nixos`

### Key Bindings

| Key | Behavior |
Expand All @@ -49,5 +56,4 @@ and then reference it in your `environment.systemPackages`:

### Known Issues / TODO

- Legacy non-flake config support
- Loading arbitrary nix exprs defined by the user
- Search / path navigator ui needs to be more visible

0 comments on commit f360d20

Please sign in to comment.