Hey! I’m new to nix and I have run into few issues along my way, however this one is really bothering me, I have a funny feeling that I’m missing e.g piece from my setup, or it has syntax error etc.
Anyways, Im supposed to build derivation from custom nodejs app and then run it as a systemd service, my nodejs app is already built and it works as is.
e.g ExecStart = "${pkgs.nodejs-18_x}/bin/node ${my-app} where my-app is just imported directly from folder.
However after building the derivation and checking that it exists in nix-store, containing the same data under my-app-derivation/bin/my-app I can’t seem to use it like ExecStart = “${pkgs.my-app-derivation}/bin/my-app” so I’m wondering what I’m doing wrong here.
I have also placed the my-app-derivation to environment.systemPackages.
The error Im getting is “error: attribute ‘my-app-derivation’ missing”.
For context, what I’ve gathered is I need to make custom derivation so that I can use overlay for rebuilding application within an image after user makes changes to it in environment without dependencies and internet connection.