### Adding nix-inspect to System Packages Source: https://github.com/bluskript/nix-inspect/blob/main/README.md Include `nix-inspect` in your NixOS configuration's `environment.systemPackages` list to install it system-wide, referencing the flake input defined previously. ```Nix {inputs, ...}: { environment.systemPackages = [ inputs.nix-inspect.packages.default ]; } ``` -------------------------------- ### Running nix-inspect via nix run Source: https://github.com/bluskript/nix-inspect/blob/main/README.md Execute the nix-inspect tool directly from its GitHub repository using the `nix run` command, which fetches and runs the flake. ```Shell nix run github:bluskript/nix-inspect ``` -------------------------------- ### Inspecting NixOS Config in Nix REPL Source: https://github.com/bluskript/nix-inspect/blob/main/README.md Demonstrates the typical workflow of loading a NixOS configuration into the Nix REPL using `:lf` and accessing a specific attribute path to retrieve a value. ```Nix REPL ❯ : nix repl nix-repl> :lf /etc/nixos Added 18 variables. nix-repl> nixosConfigurations.felys.config.home-manager.users.blusk.stylix.fonts.monospace.name "Cozette" ``` -------------------------------- ### Loading Config from Specific Path with nix-inspect Source: https://github.com/bluskript/nix-inspect/blob/main/README.md Use the `--path` or `-p` flag with `nix-inspect` to load and inspect a Nix configuration located at a specified file system path, overriding the default location. ```Shell nix-inspect -p /persist/etc/nixos ``` -------------------------------- ### Loading Arbitrary Expression with nix-inspect Source: https://github.com/bluskript/nix-inspect/blob/main/README.md Use the `--expr` or `-e` flag with `nix-inspect` to load and inspect an arbitrary Nix expression provided directly on the command line. ```Shell nix-inspect -e { a = 1; } ``` -------------------------------- ### Adding nix-inspect as Flake Input Source: https://github.com/bluskript/nix-inspect/blob/main/README.md Define `nix-inspect` as an input in your Nix flake's `inputs` section, referencing its GitHub URL to make it available for use in your configuration. ```Nix { inputs = { nix-inspect.url = "github:bluskript/nix-inspect"; }; } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.