How can I list all nix store paths referenced in a build generation?

I’m trying to debug an issue where a nixos configuration on one machine, has the an application accessible in the path (it’s listed in /run/current-system/sw/bin), while on another machine with the same nixos configuration (minus hardware-configuration.nix etc), it does not. How can I query all the store paths for a Nixos generation? This will help…

Details

How to increment the index in the existing string?

I have a following string value and I want to increment index in the string as below. { “name”: “poc_param_model_001”, “type”: “DOUBLE”, “role”: “MEASURE”, “seq”: 1 } Here is what I want to do. { “name”: “poc_param_model_002”, “type”: “DOUBLE”, “role”: “MEASURE”, “seq”: 2 } { “name”: “poc_param_model_003”, “type”: “DOUBLE”, “role”: “MEASURE”, “seq”: 3 } {…

Details