Hello,
I’ve been struggling getting my first flake to work. The flake provides a package called taxi
, which has a withPlugins
passthru (the idea being that you install the package like so: taxi.withPlugins (ps: [ ps.clockify ])
. Adding it to my NixOS configuration.nix fails with an error attribute 'withPlugins' missing
:
(import inputs.taxi).taxi.withPlugins (ps: [ ps.clockify ])
I ended up fixing it by trial and error with (import inputs.taxi).packages.${system}.taxi.withPlugins
, which I guess is the correct way to do it?
More importantly I was wondering if there’s a good way to debug a flake? Before using flakes I could start a repl and do import <taxi>
and then inspect it, which was very useful. Now I know I can do nix flake show .
, which is nice, but doesn’t allow me to inspect the derivations and try to call passthru attrs.
So is there a way to use a flake input in a repl, or is there any other way to debug a flake?