Allow modification to nix store

I have a CLI that was converted into a Nix package (locally), but this CLI requires RW perms within the folder it resides.

Is there a way to declaratively allow the CLI to read write to it’s folder, which is in nix-store?

No, this is by design. Often many tools allow the usage of an alternate location to modify in $HOME.

1 Like

Hello,

Thank you! This is due to nix having immutable store? Thank you!

Yes, once a package is built and created, it is no longer mutable. You can create new packages, or delete and re-create, but the store is meant to be immutable. Modifications at runtime should be done separately in a known location to ease state management. It’s a fundamental separation between runtime code and data.

1 Like

what is this cli and why is being naughty?